summaryrefslogtreecommitdiff
path: root/startup-scripts/freebsd-startup.sh
diff options
context:
space:
mode:
authorJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-09 16:04:58 +0200
committerJörg Frings-Fürst <debian@jff-webhosting.net>2014-07-09 16:04:58 +0200
commit819a9ab222da57d6064a7cc9ad3e2c9ff0ef2f82 (patch)
tree5a175f83ca99f08c81f9dd2be93649fd97eebdaa /startup-scripts/freebsd-startup.sh
Imported Upstream version 0.6upstream/0.6
Diffstat (limited to 'startup-scripts/freebsd-startup.sh')
-rwxr-xr-xstartup-scripts/freebsd-startup.sh35
1 files changed, 35 insertions, 0 deletions
diff --git a/startup-scripts/freebsd-startup.sh b/startup-scripts/freebsd-startup.sh
new file mode 100755
index 0000000..5437086
--- /dev/null
+++ b/startup-scripts/freebsd-startup.sh
@@ -0,0 +1,35 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: downtimed
+# REQUIRE: LOGIN syslogd
+# KEYWORD: shutdown
+
+# This file should be installed as /usr/local/etc/rc.d/downtimed
+#
+# Define downtimed_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/downtimed
+#
+# Add the following line to enable:
+# downtimed_enable="YES"
+#
+# Add the following line to change the default options, see downtimed(8):
+# downtimed_flags="<set as needed>"
+#
+# DO NOT CHANGE THE DEFAULT VALUES BELOW
+
+. /etc/rc.subr
+
+name="downtimed"
+rcvar=`set_rcvar`
+
+command="/usr/local/sbin/${name}"
+pidfile="/var/run/${name}.pid"
+
+load_rc_config "$name"
+
+: ${downtimed_enable="NO"}
+
+run_rc_command "$1"