GnomeFiles.org
HomeApp RankingSubmit App
DevelopersResourcesContact Us
 VaryOnApplet
  version 1.5
Publisher Info
Home Page
Screenshots
Version History
Report a Bug
Post Comment
Published by Chuck Rhode
Date Posted: June 30, 2006
Last Updated: January 12, 2008
Downloads: 173 (all versions)
Page Views: 7066 total
License: GPL
User Rating
6.33 / 10 with 6 votes

Listed at Miscellaneous, Desktop Accessories, Panel Applets
 
  About VaryOnApplet
This is a pushbutton process-control applet for Gnome.
 
After VaryOnApplet is installed, you will need to logout and log back into Gnome, or you can force the panel to reload by killing it:

killall gnome-panel

As soon as the panel recovers, you can add the VaryOnApplet to it by right clicking on the panel and selecting Add: Utility: VaryOn Applet.

Initially, it will look like a red "X" Checkbox.

To make it do something, you will need to right click on it and set Preferences, as follows:

Applet Title is the text to show beside the checkbox on the panel.

Start and Stop are shell commands to bring up and take down the process that you want VaryOnApplet to control. When you left click on it, the applet plays the role of a toggle to vary the process on and off. Note: VaryOnApplet won't try to bring a process down if it doesn't believe the process is running.

For example, in my Beyond Linux from Scratch (BLFS) configuration:

/etc/rc.d/init.d/network start

... starts the *dhcpcd* process, which opens my DSL line. Thus, my Applet Title is "DSL," and my Start Command is as above. My Stop Command is "/etc/rc.d/init.d/network stop."

In VaryOnApplet's Preferences, Lock is the name of a file (any file) created by the process.

Now, I happen to know that, as soon as *dhcpcd* starts, it creates a file called /var/run/dhcpcd-eth0.pid on my machine, so that's what I put in Lock File.

Check is to confirm that the Lock File belongs to the Process.

If Check is False, then, whenever Lock File is present, VaryOnApplet changes from a red "X" to a green "V". Every three seconds, VaryOnApplet makes sure the Lock File is still there. No further checks are done, and this is fine so long as the process doesn't crash leaving the Lock File behind.

Process Name is (not) always obvious. You can find out what it should be. First *cat* out the contents of Lock File. If it is a process ID (pid) number, then you can print the name of the process that "owns" it like this:

ps --pid 999 --format ucmd --no-headers

... where 999 is the process ID.

In VaryOnApplet's Preferences, set Process Name to the Lock File owner. In my case, this is "dhcpcd," but I already knew that. Now, if you want VaryOnApplet continually to be sure that the Lock File owner is alive, set Check Process.

Of course, VaryOnApplet is a general-purpose toggle. It doesn't insist that there be any particular content in the Lock File if you don't set Check Process. Thus, there doesn't have to be a running process that owns it. There doesn't have to be any special relationship between the presence of the Lock File and the Start and Stop Commands. There don't have to be any Start/Stop commands, for that matter.

There doesn't even have to be a Lock File. Then VaryOnApplet will just sit there looking like a red "X."
 
Requirements
This application requires GTK+ version 2.2.x. Other dependencies include:
Python 2.3
 
  Latest Version: 1.5
Accommodate name changes in the gnomeapplet module.

Download Size
gzipped tar archive 73 KB
 
Search GnomeFiles

Most Popular
1. NeroLinux 47611
2. MPlayer 23472
3. WiFi Radar 22948
4. Desktop Optimizatio 20316
5. Mac Menubar for GNO 19191
6. GNOME PPP 18175
7. Real Player 16777
8. CompTemp Monitor 15076
9. gnormalize 13746
10. GNOME Sensors Apple 13599
Best Rated
1. GAdmin-OpenVPN-Serve8.50
2. gambas8.41
3. Wireshark8.38
4. Evolution8.29
5. Ardour8.27
6. HomeBank8.23
7. EiffelStudio8.20
8. DeVeDe8.11
9. Gnac8.07
10. Gnaughty8.03
Software Categories
Audio Tools
Development
Games
Graphics & Design
Home & Education
Info Management
Internet & Network
Productivity
Science & Math
System Files
Utilities
Video Tools
 
Add GnomeFiles to Mozilla Sidebar   Add GnomeFiles to your Opera or Mozilla Sidebar   Add Mozilla Search Engine Plugin   WAP support for your phone. Use linked URL.   Add news feed to MyYahoo   GnomeFiles XML News Feed
Copyright OSNews LLC 2004-2009. All Rights Reserved.
Disclaimers - Privacy statement - Notice to Bulk Emailers