updated on Thu Jan 12 08:01:00 UTC 2012
[aur-mirror.git] / nvtv / nvtvd
blobb75c23180dd1fc774d9aee2692705c4ec23e8194
1 #!/bin/bash
3 . /etc/rc.conf
4 . /etc/rc.d/functions
6 NVTVD_PID=`pidof -o %PPID /usr/bin/nvtvd`
8 case "$1" in
9 start)
10 stat_busy "Starting Nvidia TV-out daemon"
11 nvtvd &
12 if [ $? -gt 0 ]; then
13 stat_fail
14 else
15 add_daemon nvtvd
16 stat_done
19 stop)
20 stat_busy "Stopping Nvidia TV-out daemon"
21 kill $NVTVD_PID > /dev/null 2>&1
22 if [ $? -gt 0 ]; then
23 stat_fail
24 else
25 rm_daemon nvtvd
26 stat_done
29 restart)
30 $0 stop
31 $0 start
34 echo "usage: $0 {start|stop|restart}"
36 esac
37 exit 0