logging

Craig Sparks <[email protected]> Sat, 30 May 2009 03:19:42 -0400
Newsgroups gmane.comp.djb.syslog
Message-ID <[email protected]>
Im trying to get spamd working with daemon tools, it keeps crashing and 
its not logging,

The log service is running.
spamd is crashng because I see its pid keeps changing every second.


[root@localhost proftpd]# tail -f /service/proftpd/log/main/current

[root@localhost proftpd]# vim /service/qmail-smtpd/
log/       run        supervise/
[root@localhost proftpd]# vim /service/qmail-smtpd/log/
run        supervise/
[root@localhost proftpd]# vim /service/qmail-smtpd/log/run
[root@localhost proftpd]# cd ../spamd/
[root@localhost spamd]# ls
log  razor-agent.log  run  supervise
[root@localhost spamd]# cat run
ME=spamd
$PIDFILE="/var/run/$NAME.pid"
exec 2>&1
exec spamd -x -u spamd -H /home/spamd -s /dev/stderr

[root@localhost spamd]# cat ./log/run
#!/bin/sh

exec multilog t n20 s1048576 ./main
[root@localhost spamd]# ls ./log/run
./log/run
[root@localhost spamd]# ls ./log/
main  run  supervise
[root@localhost spamd]# ls -la ./log/
total 20
drwxr-xr-x 4 root root 4096 May 30 00:40 .
drwxr-xr-t 4 root root 4096 May 30 01:16 ..
drwx------ 2 root root 4096 May 30 00:50 main
-rwxr-xr-x 1 root root   47 May 27 23:29 run
drwx------ 2 root root 4096 May 30 01:16 supervise
[root@localhost spamd]# cat ./run
ME=spamd
$PIDFILE="/var/run/$NAME.pid"
exec 2>&1
exec spamd -x -u spamd -H /home/spamd -s /dev/stderr

[root@localhost spamd]# cat ./run