mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-27 10:03:20 +00:00
4df8e791b4
- Add startup script - Update maintainer email PR: ports/110939 Submitted by: Gregory Edigarov <greg@bestnet.kharkov.ua> (maintainer)
22 lines
419 B
Bash
22 lines
419 B
Bash
#!/bin/sh
|
|
#
|
|
# PROVIDE: sflowtool
|
|
# REQUIRE: DAEMON
|
|
|
|
. %%RC_SUBR%%
|
|
|
|
name="sflowtool"
|
|
rcvar=`set_rcvar`
|
|
command="%%PREFIX%%/bin/sflowtool"
|
|
|
|
load_rc_config $name
|
|
# Set defaults
|
|
: ${sflowtool_enable="NO"}
|
|
: ${sflowtool_flags=""}
|
|
: ${sflowtool_pidfile="/var/run/${name}.pid"}
|
|
|
|
start_cmd="/usr/sbin/daemon -f -p ${sflowtool_pidfile} ${command} ${sflowtool_flags}"
|
|
start_postcmd="echo Starting ${name}."
|
|
|
|
run_rc_command "$1"
|