summaryrefslogtreecommitdiffstats
path: root/sysutils/system-tools-backends/files/system-tools-backends.in
diff options
context:
space:
mode:
Diffstat (limited to 'sysutils/system-tools-backends/files/system-tools-backends.in')
-rw-r--r--sysutils/system-tools-backends/files/system-tools-backends.in24
1 files changed, 24 insertions, 0 deletions
diff --git a/sysutils/system-tools-backends/files/system-tools-backends.in b/sysutils/system-tools-backends/files/system-tools-backends.in
new file mode 100644
index 000000000..c51019790
--- /dev/null
+++ b/sysutils/system-tools-backends/files/system-tools-backends.in
@@ -0,0 +1,24 @@
+#!/bin/sh
+# $FreeBSD$
+# $MCom$
+
+# PROVIDE: system-tools-backends
+# REQUIRE: DAEMON dbus
+#
+# Add the following to /etc/rc.conf to start SystemToolsBackends at boot time:
+#
+# system_tools_backends_enable="YES"
+#
+
+. %%RC_SUBR%%
+. %%GNOME_SUBR%%
+
+system_tools_backends_enable=${system_tools_backends_enable-${gnome_enable}}
+
+name=system_tools_backends
+rcvar=`set_rcvar`
+command="%%PREFIX%%/share/system-tools-backends-2.0/scripts/SystemToolsBackends.pl"
+pidfile="/var/run/system-tools-backends.pid"
+
+load_rc_config ${name}
+run_rc_command "$1"