blob: 3b0303e7afe9e374fd491764f3c9f5ee8bd0c878 (
plain) (
tree)
|
|
#!/bin/sh
# PROVIDE: hpssd
# REQUIRE: hpiod
# BEFORE: cupsd
# KEYWORD: shutdown
. /etc/rc.subr
name=hpssd
rcvar=${name}_enable
command="%%PREFIX%%/sbin/${name}"
command_interpreter="%%PREFIX%%/bin/python"
pidfile="/var/run/${name}.pid"
portfile="/var/run/${name}.port"
hpssd_user=nobody
command_args=">/dev/null"
start_precmd="hpssd_prestart"
load_rc_config $name
: ${hpssd_enable="NO"}
hpssd_prestart()
{
touch ${pidfile}
touch ${portfile}
chown ${hpssd_user} ${pidfile}
chown ${hpssd_user} ${portfile}
}
run_rc_command $*
|