Changeset View
Changeset View
Standalone View
Standalone View
head/sysutils/conman/files/conmand.in
Property | Old Value | New Value |
---|---|---|
fbsd | null | nokeywords \ No newline at end of property |
svn:eol-style | null | native \ No newline at end of property |
svn:keywords | null | FreeBSD=%H \ 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" |