From: Asif I. <va...@gm...> - 2007-06-05 16:28:23
|
Hi Eric, Is it possible to turn off sending logs to logfile and show all logs in standardout while running in foreground? I use `daemontools' to manage all my apps and w/ current devmon (0.3.x) I got two copies of the logs. One in logfile and one in foreground which is then managed by multilog. I have it setup like this. cat /service/devmon/run #! /bin/sh exec 2>&1 exec setuidgid devmon /usr/local/devmon/devmon -v -f cat /service/devmon/log/run #! /bin/sh exec setuidgid devmon multilog t /var/log/devmon As you can see I get logs in two places: (root)@hobbit:/var/log/devmon$ ls -al total 3 drwxr-xr-x 2 devmon other 512 Jun 5 12:13 . drwxr-xr-x 7 root sys 512 Jun 5 12:20 .. -rw-r--r-- 1 devmon other 290 Jun 5 12:13 current -rw------- 1 devmon other 0 Jun 5 12:13 lock -rw-r--r-- 1 devmon other 0 Jun 5 12:13 state (root)@hobbit:~$ ls -al /var/log/devmon.log -rw-r--r-- 1 devmon other 1146 Jun 5 12:27 /var/log/devmon.log Thanks -- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu |