From owner-freebsd-questions@FreeBSD.ORG Tue Jul 15 21:40:54 2003 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id DE88D37B401 for ; Tue, 15 Jul 2003 21:40:54 -0700 (PDT) Received: from smtp017.mail.yahoo.com (smtp017.mail.yahoo.com [216.136.174.114]) by mx1.FreeBSD.org (Postfix) with SMTP id 71D5843F75 for ; Tue, 15 Jul 2003 21:40:54 -0700 (PDT) (envelope-from r11roadster@yahoo.com) Received: from ip-24-197-140-177.spart.sc.charter.com (HELO Tarabon) (r11roadster@24.197.140.177 with login) by smtp.mail.vip.sc5.yahoo.com with SMTP; 16 Jul 2003 04:40:54 -0000 From: "Ronny Hippler" To: "freebsd questions" Date: Wed, 16 Jul 2003 00:40:52 -0400 Priority: Normal X-Mailer: PMMail 2000 Professional (2.20.2717) For Windows 2000 (5.1.2600;1) MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <20030716044054.71D5843F75@mx1.FreeBSD.org> Subject: /var/run/ pid files X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: Ronny Hippler List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jul 2003 04:40:55 -0000 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