blob: 4e7dc15f11b091892e1292c08e03dbd2c6f73215 (
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
31
32
33
34
35
|
#!/bin/sh
# PROVIDE: hpssd
# REQUIRE: hpiod
# BEFORE: cupsd
# KEYWORD: FreeBSD shutdown
[ -z "${hpssd_enable}" ] && hpssd_enable="NO"
. /etc/rc.subr
prefix=%%PREFIX%%
name=hpssd
pidfile="/var/run/${name}.pid"
portfile="/var/run/${name}.port"
hpssd_user=nobody
command="${prefix}/sbin/${name}"
command_interpreter="$prefix/bin/python"
command_args=">/dev/null"
start_precmd="hpssd_prestart"
rcvar=`set_rcvar`
load_rc_config $name
hpssd_prestart()
{
touch ${pidfile}
touch ${portfile}
chown ${hpssd_user} ${pidfile}
chown ${hpssd_user} ${portfile}
}
run_rc_command $*
|