Date: Wed, 16 Jul 2003 00:40:52 -0400 From: "Ronny Hippler" <r11roadster@yahoo.com> To: "freebsd questions" <freebsd-questions@freebsd.org> Subject: /var/run/ pid files Message-ID: <20030716044054.71D5843F75@mx1.FreeBSD.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030716044054.71D5843F75>