board/csky: fixup gdb instructions in readme.txt
[buildroot-gz.git] / package / openvmtools / S10vmtoolsd
blob6afb9ca08ac09f523d061a4515f3e94ad015b060
1 #!/bin/sh
3 # Starts vmtoolsd for openvmtools
6 EXEC="/usr/bin/vmtoolsd"
7 ARGS="-b"
8 PID="/var/run/vmtoolsd.pid"
10 case "$1" in
11 start)
12 printf "Starting vmtoolsd: "
13 start-stop-daemon -S -q -x $EXEC -- $ARGS $PID
14 if [ $? != 0 ]; then
15 echo "FAILED"
16 exit 1
17 else
18 echo "OK"
21 stop)
22 printf "Stopping vmtoolsd: "
23 start-stop-daemon -K -q -p $PID
24 echo "OK"
26 restart|reload)
27 $0 stop
28 $0 start
31 echo "Usage: $0 {start|stop|restart}"
32 exit 1
33 esac