summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'media-video/coherence/files/coherence-init')
-rw-r--r--media-video/coherence/files/coherence-init23
1 files changed, 23 insertions, 0 deletions
diff --git a/media-video/coherence/files/coherence-init b/media-video/coherence/files/coherence-init
new file mode 100644
index 000000000000..6e71e8f77f6d
--- /dev/null
+++ b/media-video/coherence/files/coherence-init
@@ -0,0 +1,23 @@
+#!/sbin/runscript
+
+depend() {
+ need net
+ after bootmisc
+}
+
+start() {
+ ebegin "Starting Coherence"
+ start-stop-daemon --start --exec /usr/bin/coherence \
+ --pidfile /var/run/coherence.pid \
+ --background \
+ -- -c /etc/coherence.conf
+ eend $?
+}
+
+stop() {
+ ebegin "Stopping Coherence"
+ start-stop-daemon --stop --exec /usr/bin/coherence \
+ --pidfile /var/run/coherence.pid
+ eend $?
+}
+