diff options
author | jlam <jlam> | 2000-12-09 22:18:24 +0000 |
---|---|---|
committer | jlam <jlam> | 2000-12-09 22:18:24 +0000 |
commit | ae3c0289902e9e69d0a9939e79c708fd92703528 (patch) | |
tree | f9b78e709b44d45f49542faf5495f1158294c849 /print/cups/files | |
parent | e41ae8e10848fc83b799a41315ca6fc51a950af4 (diff) | |
download | pkgsrc-ae3c0289902e9e69d0a9939e79c708fd92703528.tar.gz |
Some tweaks to the DEINSTALL/INSTALL scripts and improvements to the
cupsd rc.d script.
Diffstat (limited to 'print/cups/files')
-rw-r--r-- | print/cups/files/cupsd.sh | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/print/cups/files/cupsd.sh b/print/cups/files/cupsd.sh index d48a29208d9..71ccc2f4967 100644 --- a/print/cups/files/cupsd.sh +++ b/print/cups/files/cupsd.sh @@ -1,6 +1,6 @@ #!/bin/sh # -# $NetBSD: cupsd.sh,v 1.1 2000/12/07 20:33:05 jlam Exp $ +# $NetBSD: cupsd.sh,v 1.2 2000/12/09 22:18:24 jlam Exp $ # # PROVIDE: cupsd # REQUIRE: DAEMON @@ -14,13 +14,13 @@ cmd=${1:-start} case ${cmd} in start|restart) - if [ "$pid" != "" ] + if [ "$pid" = "" -a -x ${command} ] then - echo "Restarting ${name}." - kill -HUP $pid - else echo "Starting ${name}." ${command} + else + echo "Restarting ${name}." + kill -HUP $pid fi ;; |