#!/bin/sh # PROVIDE: hpssd # REQUIRE: hpiod # 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" 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 $*