diff options
Diffstat (limited to 'print/cups/files')
-rw-r--r-- | print/cups/files/cupsd.sh | 49 | ||||
-rw-r--r-- | print/cups/files/md5 | 4 | ||||
-rw-r--r-- | print/cups/files/patch-sum | 11 |
3 files changed, 56 insertions, 8 deletions
diff --git a/print/cups/files/cupsd.sh b/print/cups/files/cupsd.sh new file mode 100644 index 00000000000..d48a29208d9 --- /dev/null +++ b/print/cups/files/cupsd.sh @@ -0,0 +1,49 @@ +#!/bin/sh +# +# $NetBSD: cupsd.sh,v 1.1 2000/12/07 20:33:05 jlam Exp $ +# +# PROVIDE: cupsd +# REQUIRE: DAEMON + +name="cupsd" +command=@PREFIX@/sbin/${name} + +pid=`ps -ax | awk '{print $1,$5}' | grep ${name} | awk '{print $1}'` + +cmd=${1:-start} + +case ${cmd} in +start|restart) + if [ "$pid" != "" ] + then + echo "Restarting ${name}." + kill -HUP $pid + else + echo "Starting ${name}." + ${command} + fi + ;; + +stop) + if [ "$pid" != "" ] + then + echo "Stopping ${name}." + kill $pid + fi + ;; + +status) + if [ "$pid" != "" ] + then + echo "${name} is running as pid ${pid}." + else + echo "${name} is not running." + fi + ;; + +*) + echo 1>&2 "Usage: ${name} [restart|start|stop|status]" + exit 1 + ;; +esac +exit 0 diff --git a/print/cups/files/md5 b/print/cups/files/md5 index 9e3743e13ce..33abc8e92f6 100644 --- a/print/cups/files/md5 +++ b/print/cups/files/md5 @@ -1,3 +1,3 @@ -$NetBSD: md5,v 1.2 2000/07/12 20:09:35 jlam Exp $ +$NetBSD: md5,v 1.3 2000/12/07 20:33:06 jlam Exp $ -MD5 (cups-1.1-source.tar.bz2) = 8dd8db34a30e2b4457b9d08bf248cef9 +MD5 (cups-1.1.4-source.tar.bz2) = c9f43f4f200e33458f84ca5e4a2bdebb diff --git a/print/cups/files/patch-sum b/print/cups/files/patch-sum index f679cf5f3dd..cd26252379d 100644 --- a/print/cups/files/patch-sum +++ b/print/cups/files/patch-sum @@ -1,7 +1,6 @@ -$NetBSD: patch-sum,v 1.4 2000/07/12 20:09:35 jlam Exp $ +$NetBSD: patch-sum,v 1.5 2000/12/07 20:33:06 jlam Exp $ -MD5 (patch-aa) = aa04d679c1a6ee4e1c4269c97201d4be -MD5 (patch-ab) = 60e0f0b91b4d403e77f7cdf5cae10938 -MD5 (patch-bb) = d6e760e450e715ba284f61ce320be2f2 -MD5 (patch-bc) = f0836fd83ce767b78e482c0fa11aaeb4 -MD5 (patch-bd) = c3eb7faea327283839ea836590421c89 +MD5 (patch-aa) = 487e0f2674d818f333aa75fcb959ea61 +MD5 (patch-ab) = 0b881c059a3ab2e831328484f3bce2d3 +MD5 (patch-ac) = e06be2ba8c1e2a8c113cfed05c989e32 +MD5 (patch-bb) = 69d0be20367413f54a3377d4f07d5d87 |