summaryrefslogtreecommitdiff
blob: 898eae0487669548e2ba2f22aaf7d98fdc82b00f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/sbin/runscript

depend() {
    need net
}

start() {
    ebegin "Starting Flumotion"
    if [ ! -d /var/run/flumotion ] ; then
        mkdir /var/run/flumotion
        chown flumotion:flumotion /var/run/flumotion
        chmod 755 /var/run/flumotion
    fi

    start-stop-daemon -o --start --chuid flumotion:flumotion --exec /usr/sbin/flumotion start
    eend $?
}

stop() {
    ebegin "Stopping Flumotion"
    /usr/sbin/flumotion stop
    eend $?
}