]> gitweb @ CieloNegro.org - pci-nopaste.git/commitdiff
fix bugs in rc.d/linux/pci-nopaste.in
authorPHO <pho@cielonegro.org>
Tue, 6 Nov 2012 05:39:17 +0000 (14:39 +0900)
committerPHO <pho@cielonegro.org>
Tue, 6 Nov 2012 05:39:17 +0000 (14:39 +0900)
rc.d/linux/pci-nopaste.in

index 1f1f00765f9566225dedf3764b67a780d0f41023..60c9aa12e962903d1b934ce1dc95c434565aaffe 100644 (file)
@@ -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..."