blob: 90d0d0b0f1236974e837d58f7785c356910cc343 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
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 $*
|