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





_______________________________________________
[EMAIL PROTECTED] mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to