summaryrefslogtreecommitdiff
path: root/print/cups/files/cupsd.sh
diff options
context:
space:
mode:
Diffstat (limited to 'print/cups/files/cupsd.sh')
-rw-r--r--print/cups/files/cupsd.sh26
1 files changed, 26 insertions, 0 deletions
diff --git a/print/cups/files/cupsd.sh b/print/cups/files/cupsd.sh
new file mode 100644
index 00000000000..6a47ed84a57
--- /dev/null
+++ b/print/cups/files/cupsd.sh
@@ -0,0 +1,26 @@
+#! /bin/sh
+#
+# Common UNIX Printing System daemon
+#
+# PROVIDE: cupsd
+# REQUIRE: DAEMON
+
+if [ -d /etc/rc.d -a -f /etc/rc.subr ]
+then
+ . /etc/rc.subr
+fi
+
+name="cupsd"
+rcvar=${name}
+command="@PREFIX@/sbin/${name}"
+required_files="/etc/cups/${name}.conf"
+extra_commands="reload"
+
+if [ ! -d /etc/rc.d ]
+then
+ @ECHO@ -n " ${name}"
+ exec ${command} ${cupsd_flags} ${command_args}
+fi
+
+load_rc_config $name
+run_rc_command "$1"