summaryrefslogtreecommitdiffstats
path: root/sysutils/system-tools-backends/files/system-tools-backends.in
diff options
context:
space:
mode:
authormarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-11-10 02:55:27 +0800
committermarcus <marcus@df743ca5-7f9a-e211-a948-0013205c9059>2006-11-10 02:55:27 +0800
commita6d3f91d698d421a8b98eebcfe2b37fe4904f46c (patch)
treeb733353690b57870f02aa8786d677160e214cd39 /sysutils/system-tools-backends/files/system-tools-backends.in
parent01e1e83823f17ab9e65771eed1efd401c33bb141 (diff)
downloadmarcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.gz
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.bz2
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.lz
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.xz
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.tar.zst
marcuscom-ports-a6d3f91d698d421a8b98eebcfe2b37fe4904f46c.zip
Add an rc.d script for s-t-b as this backend needs to start as root. Thanks
to Carlos Garnacho for pointing this out. git-svn-id: svn://creme-brulee.marcuscom.com/ports/trunk@7895 df743ca5-7f9a-e211-a948-0013205c9059
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"