/var/run/ pid files
Ronny Hippler
r11roadster at yahoo.com
Tue Jul 15 21:40:55 PDT 2003
Hello,
What controls the creation of the pid files in the /var/run/ directory?
every time I shut down I get the error: bftpd.pid: No such file or directory
therefore I am not getting a clean shutdown on bftpd, no biggie but annoying. I
am starting this via /usr/local/etc/rc.d/bftpd.sh which is below. when I look in
/var/run/ there obviously is no pid file but there is a bftpd directory which is
empty. Is this an error in the script or in the program? TIA
#!/bin/sh -
# initialization/shutdown script for bftpd
case "$1" in
start)
/usr/local/sbin/bftpd -d && echo -n ' bftpd'
;;
stop)
kill `cat /var/run/bftpd.pid` && echo -n ' bftpdf'
;;
*)
echo "unknown option: $1 - should be 'start' or 'stop'" >&2
;;
esac
More information about the freebsd-questions
mailing list