[mrtg] lock-file

Stuart Kendrick skendric at fhcrc.org
Sat Jan 31 15:12:20 MET 2004


hi,

i would like to locate the lock-file somewhere other than where it sits by
default.  http://people.ee.ethz.ch/~oetiker/webtools/mrtg/mrtg.html
suggests that MRTG accepts a command-line option for doing this:


--lock-file filename
Use an alternate lock-file (the default is to use the configuration-file
appended with _l).


but when i employ this option, i don't see any change in the name of the
lock-file which gets created (i.e. the default still appears)

netstats at jennite:~/var/log> ps -ewf | grep routers
netstats 23627     1  2 06:06 ?        00:00:04 /usr/bin/perl -w
/opt/vdops/mrtg-2/bin/mrtg /home/netstats/etc/routers.cfg
/home/netstats/var/lock/routers.lock --logging /home/netstats/var/log/routers.log
--pid-file=/home/netstats/var/run/routers.pid --user=netstats --group=vdops



netstats at jennite:~/var/lock> pwd
/home/netstats/var/lock
netstats at jennite:~/var/lock> l
total 8
drwxrwxr-x    2 netstats vdops        4096 2004-01-31 05:57 ./
drwxr-xr-x    6 netstats vdops        4096 2004-01-31 05:37 ../
netstats at jennite:~/var/lock>


netstats at jennite:~/etc> pwd
/home/netstats/etc
netstats at jennite:~/etc> l | grep routers
-rw-r--r--    1 netstats vdops       82576 2004-01-30 15:48 routers.cfg
-rw-r--r--    1 netstats vdops           0 2004-01-31 06:06 routers.cfg_l
netstats at jennite:~/etc>


has anyone else had success in moving the location of the lock-file?  i'm
running mrtg-2.10.13.

--sk

Stuart Kendick
FHCRC

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list