diff options
Diffstat (limited to 'print/hplip3/files/hpssd.in')
-rw-r--r-- | print/hplip3/files/hpssd.in | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/print/hplip3/files/hpssd.in b/print/hplip3/files/hpssd.in new file mode 100644 index 000000000000..90d0d0b0f123 --- /dev/null +++ b/print/hplip3/files/hpssd.in @@ -0,0 +1,30 @@ +#!/bin/sh + +# PROVIDE: hpssd +# BEFORE: cupsd +# KEYWORD: shutdown + +. %%RC_SUBR%% + +name=hpssd +rcvar=${name}_enable + +command="%%PREFIX%%/sbin/${name}" +command_interpreter="%%PREFIX%%/bin/python" +pidfile="/var/run/${name}.pid" +hpssd_user=nobody +command_args=">/dev/null" + +start_precmd="hpssd_prestart" + +load_rc_config $name + +: ${hpssd_enable="NO"} + +hpssd_prestart() +{ + touch ${pidfile} + chown ${hpssd_user} ${pidfile} +} + +run_rc_command $* |