Changeset View
Changeset View
Standalone View
Standalone View
sysutils/conman/files/conmand.in
- This file was added.
Property | Old Value | New Value |
---|---|---|
svn:eol-style | null | native \ No newline at end of property |
svn:executable | null | * \ No newline at end of property |
svn:mime-type | null | text/plain \ No newline at end of property |
#!/bin/sh | |||||
# $FreeBSD$ | |||||
# | |||||
# PROVIDE: conmand | |||||
# REQUIRE: NETWORKING | |||||
# KEYWORD: shutdown | |||||
# Add the following lines to /etc/rc.conf to enable conman: | |||||
# conman_enable="YES" | |||||
# conman_args="<set as needed>" | |||||
. /etc/rc.subr | |||||
name=conmand | |||||
rcvar=conmand_enable | |||||
load_rc_config $name | |||||
pidfile=/var/run/conmand.pid | |||||
procname="%%PREFIX%%/sbin/conmand" | |||||
: ${conmand_enable:="NO"} | |||||
: ${conmand_args:="-P ${pidfile}"} | |||||
command="${procname}" | |||||
command_args="${conmand_args}" | |||||
run_rc_command "$1" |