statclock - Reports on running clockwork, Habitat's collection agent
Reports on the running public instance of clockwork on the local machine.
This shell script locates the lock file for clockwork, which is the collection agent for the Habitat suite. It prints the process id, owning user, controlling terminal and start time of the daemon if it is found in the process table. If not found, then the lock file is removed if it is there and a message to that effect is printed
Private instances of clockwork (started with -j option) can not be stopped by this method, as they do not register in a lock file. Instead, they should be controlled by conventional process control methods.
/tmp/clockwork.run
/var/run/clockwork.run
Typing the following:-
statclock
will result in a display similar to below and the termination of the clockwork daemon.
Clockwork process 17502 is running
was started at 19-Apr-11 08:01:45 AM, user nigel, on /dev/pts/1
Nigel Stuckey <[email protected]>
clockwork(8), killclock(8), habedit(8), habrep(8), habconf(5), myhabitat(1), habget(1), habput(1), habrs(1), habprobe(1), habmeth(1)