tech-pkg archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
net/sysmon rc.d script
The net/sysmon package does not have an rc.d script but would seem to benefit from one. I have drafted one up (see below) and would appreciate comments, as I am not super familiar with the nuances of rc.subr. For example, will the value of ${sysmon_flags} automatically be inserted into the commands as written?
In addition, one bikeshedding question: the package is called sysmon, but the runnable program is sysmond. Which name should be used for the rc.d script?
Thanks for your input.
Cheers,
Brook
#!/bin/sh
#
# $NetBSD$
#
# PROVIDE: sysmon
# REQUIRE: NETWORKING
$_rc_subr_loaded . /etc/rc.subr
name="sysmond"
rcvar=$name
command=/usr/pkg/bin/${name}
start_cmd="${command}"
stop_cmd="${command} stop"
pause_cmd="${command} pause"
reload_cmd="${command} reload"
resume_cmd="${command} resume"
extra_commands="pause reload resume"
load_rc_config $name
run_rc_command "$1"
Home |
Main Index |
Thread Index |
Old Index