]> git.pld-linux.org Git - packages/LPRng.git/commitdiff
wyprawka dla drkarki
authorwojtek <wojtek@pld.org.pl>
Mon, 7 Jun 1999 07:32:21 +0000 (07:32 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    lpd.init -> 1.1

lpd.init [new file with mode: 0644]

diff --git a/lpd.init b/lpd.init
new file mode 100644 (file)
index 0000000..6219c8d
--- /dev/null
+++ b/lpd.init
@@ -0,0 +1,54 @@
+#!/bin/sh
+#
+# lpd           This shell script takes care of starting and stopping
+#               lpd (printer daemon).
+#
+# chkconfig: 2345 60 60
+# description: lpd is the print daemon required for lpr to work properly. \
+#   It is basically a server that arbitrates print jobs to printer(s).
+# processname: lpd
+# config: /etc/printcap
+
+# Source function library.
+. /etc/rc.d/init.d/functions
+
+# Source networking configuration.
+. /etc/sysconfig/network
+
+# Check that networking is up.
+[ "${NETWORKING}" = "no" ] && exit 0
+
+[ -f /usr/sbin/lpd ] || exit 0
+
+[ -f /etc/printcap ] || exit 0
+
+# Try get sysconfig ..
+if [ -f /etc/sysconfig/lpd ]; then
+    . /etc/sysconfig/lpd
+fi    
+
+# See how we were called.
+case "$1" in
+  start)
+        show Starting lpd
+        daemon lpd
+        touch /var/lock/subsys/lpd
+        ;;
+  stop)
+        show Shutting down lpd
+       killproc lpd
+        rm -f /var/lock/subsys/lpd
+        ;;
+  status)
+       status lpd
+       ;;
+  restart|reload)
+       $0 stop
+       $0 start
+       ;;
+  *)
+        echo "Usage: $0 {start|stop|restart|reload|status}"
+        exit 1
+esac
+
+exit 0
This page took 0.067002 seconds and 4 git commands to generate.