From 20d5afe15508cc5352df125e0b39b643d07704bd Mon Sep 17 00:00:00 2001 From: PHO Date: Tue, 6 Nov 2012 14:39:17 +0900 Subject: [PATCH] fix bugs in rc.d/linux/pci-nopaste.in --- rc.d/linux/pci-nopaste.in | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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..." -- 2.40.0