summaryrefslogtreecommitdiff
blob: 383a2adc390fb2dbc3f36382bb713d01c03749c8 (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/runscript
# 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}
}