summaryrefslogtreecommitdiff
blob: 6bbe49a7bbf038211c9fe4c1ad5edf9316df58bd (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
#!/sbin/openrc-run
# Copyright 1999-2012 Gentoo Foundation
# Distributed under the terms of the GNU General Public License, v2 or later

depend() {
        need localmount
        after bootmisc
}

start() {
        ebegin "Starting Spacenav system daemon"

        start-stop-daemon --start --pidfile /var/run/spnavd.pid --exec /usr/bin/spacenavd
        eend $?
}

stop() {
        local retval

        ebegin "Stopping Spacenav system daemon"

        start-stop-daemon --stop --pidfile /var/run/spnavd.pid
        retval=$?

        eend ${retval}
        return ${retval}
}