diff options
Diffstat (limited to 'media-video/flumotion/files')
-rw-r--r-- | media-video/flumotion/files/digest-flumotion-0.1.6 | 1 | ||||
-rwxr-xr-x | media-video/flumotion/files/flumotion-init | 28 |
2 files changed, 29 insertions, 0 deletions
diff --git a/media-video/flumotion/files/digest-flumotion-0.1.6 b/media-video/flumotion/files/digest-flumotion-0.1.6 new file mode 100644 index 000000000000..20bf22bf741a --- /dev/null +++ b/media-video/flumotion/files/digest-flumotion-0.1.6 @@ -0,0 +1 @@ +MD5 eaaa93f8d2696164849c19d0c466fab9 flumotion-0.1.6.tar.bz2 574448 diff --git a/media-video/flumotion/files/flumotion-init b/media-video/flumotion/files/flumotion-init new file mode 100755 index 000000000000..7f144e7e4ccd --- /dev/null +++ b/media-video/flumotion/files/flumotion-init @@ -0,0 +1,28 @@ +#!/sbin/runscript + +flumotion_manager=/usr/bin/flumotion-manager +flumotion_worker=/usr/bin/flumotion-worker +flumotion_manager_pidfile=/var/run/flumotion/manager.default.pid +flumotion_worker_pidfile=/var/run/flumotion/worker.localhost.pid + +depend() { + need net +} + +start() { + ebegin "Starting Flumotion Manager" + HOME=/usr/share/flumotion start-stop-daemon --start --chuid flumotion:flumotion --pidfile ${flumotion_manager_pidfile} --exec ${flumotion_manager} -- -D /etc/flumotion/managers/default/planet.xml + eend $? + ebegin "Starting Flumotion Worker" + HOME=/usr/share/flumotion start-stop-daemon --start --chuid flumotion:flumotion --pidfile ${flumotion_worker_pidfile} --exec ${flumotion_worker} -- -D /etc/flumotion/workers/default.xml + eend $? +} + +stop() { + ebegin "Stopping Flumotion Worker" + start-stop-daemon --stop --pidfile ${flumotion_worker_pidfile} + eend $? + ebegin "Stopping Flumotion Manager" + start-stop-daemon --stop --pidfile ${flumotion_manager_pidfile} + eend $? +} |