From: PHO Date: Tue, 6 Nov 2012 05:39:17 +0000 (+0900) Subject: fix bugs in rc.d/linux/pci-nopaste.in X-Git-Url: https://git.cielonegro.org/gitweb.cgi?a=commitdiff_plain;h=20d5afe15508cc5352df125e0b39b643d07704bd;p=pci-nopaste.git fix bugs in rc.d/linux/pci-nopaste.in --- diff --git a/rc.d/linux/pci-nopaste.in b/rc.d/linux/pci-nopaste.in index 1f1f007..60c9aa1 100644 --- a/rc.d/linux/pci-nopaste.in +++ b/rc.d/linux/pci-nopaste.in @@ -13,7 +13,7 @@ ### END INIT INFO pidfile="@localstatedir@/pci-nopaste/pci-nopaste.pid" -command="@DAEMON@ -f -p $pidfile @bindir@/pci-nopaste" +command="@DAEMON@ -cf -p $pidfile -- @bindir@/pci-nopaste" command_args="--config=@sysconfdir@/pci-nopaste.conf" pci_nopaste_user="no-paste" @@ -39,7 +39,7 @@ failure() { status() { if [ -s "$pidfile" ]; then - read _pid < "$PIDFILE" + read _pid < "$pidfile" if [ -n "$_pid" -a -d "/proc/$_pid" ]; then echo "pci-nopaste (pid $_pid) is running..."