summaryrefslogtreecommitdiff
blob: 7626c9852e8cb50d86c127ba1bf96b3ee1ff3dda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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.default.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 $?
}