aboutsummaryrefslogtreecommitdiff
path: root/www/sams/files/sams.sh.in
diff options
context:
space:
mode:
Diffstat (limited to 'www/sams/files/sams.sh.in')
-rw-r--r--www/sams/files/sams.sh.in29
1 files changed, 29 insertions, 0 deletions
diff --git a/www/sams/files/sams.sh.in b/www/sams/files/sams.sh.in
new file mode 100644
index 000000000000..05146b5fa584
--- /dev/null
+++ b/www/sams/files/sams.sh.in
@@ -0,0 +1,29 @@
+#!/bin/sh
+# $FreeBSD$
+
+# PROVIDE: sams
+# REQUIRE: LOGIN cleanvar
+# KEYWORD: shutdown
+
+# Define these sams_* variables in one of these files:
+# /etc/rc.conf
+# /etc/rc.conf.local
+# /etc/rc.conf.d/sams
+#
+# DO NOT CHANGE THESE DEFAULT VALUES HERE
+#
+sams_enable=${sams_enable-"NO"}
+sams_flags=${sams_flags-""}
+sams_pidfile=${sams_pidfile-"/var/run/samsdaemon.pid"}
+
+. %%RC_SUBR%%
+
+name="sams"
+rcvar=`set_rcvar`
+command="%%PREFIX%%/bin/samsdaemon"
+
+load_rc_config $name
+
+pidfile="${sams_pidfile}"
+
+run_rc_command "$1"