Subversion Repositories general

Compare Revisions

No changes between revisions

Ignore whitespace Rev 1173 → Rev 1174

/rebootd/trunk/ports/freebsd/rebootd.sh
File deleted
Property changes:
Deleted: svn:executable
-*
\ No newline at end of property
/rebootd/trunk/ports/freebsd/files/rebootd.sh
0,0 → 1,32
#!/bin/sh
 
# PROVIDE: rebootd
# REQUIRE: NETWORKING SERVERS
# KEYWORD: FreeBSD shutdown
 
#
# Add the following lines to /etc/rc.conf to enable rebootd:
# rebootd_enable (bool): Set to "NO" by default.
# Set it to "YES" to enable rebootd
# rebootd_flags (str): Any arguments
#
 
. /etc/rc.subr
 
name="rebootd"
rcvar=`set_rcvar`
 
command="/usr/opt/sbin/rebootd"
pidfile="/var/run/rebootd.pid"
 
[ -z "${rebootd_enable}" ] && rebootd_enable="NO"
[ -z "${rebootd_flags}" ] && rebootd_flags=""
[ -z "${rebootd_configfile}" ] && rebootd_configfile="/usr/local/etc/rebootd.conf"
 
rebootd_flags="--config ${rebootd_configfile} ${rebootd_flags}"
required_files=${rebootd_configfile}
 
load_rc_config $name
 
extra_commands="reload"
run_rc_command "$1"
Property changes:
Added: svn:executable
+*
\ No newline at end of property