wok view open-vm-tools/stuff/vmtoolsd @ rev 19111

gtk-theme-{albatross,blackbird,bluebird,greybird,orion}: define all gtk2 icon-related sizes
author Aleksej Bobylev <al.bobylev@gmail.com>
date Fri May 06 15:40:30 2016 +0300 (2016-05-06)
parents
children 7f188676b59c
line source
1 #!/bin/sh
2 # /etc/init.d/vmtoolsd : Start, stop and restart Open VM Tools daemon on SliTaz, at
3 # boot time or with the command line.
4 #
5 # To start VMTools daemon at boot time, just put vmtoolsd in the $RUN_DAEMONS
6 # variable of /etc/rcS.conf and configure options with /etc/daemons.conf
7 #
8 . /etc/init.d/rc.functions
9 . /etc/daemons.conf
11 NAME=VMTools
12 DESC="VMTools"
13 DAEMON=/usr/bin/vmtoolsd
14 PIDFILE=/var/run/vmtoolsd.pid
15 OPTIONS="-b $PIDFILE"
17 case "$1" in
18 start)
19 if active_pidfile $PIDFILE vmtoolsd ; then
20 echo "$NAME already running."
21 exit 1
22 fi
23 echo -n "Starting $DESC: $NAME... "
24 modprobe vmblock
25 modprobe vmhgfs
26 modprobe vmci
27 modprobe vmsync
28 modprobe vsock
29 $DAEMON $OPTIONS
30 status
31 ;;
32 stop)
33 if ! active_pidfile $PIDFILE vmtoolsd ; then
34 echo "$NAME is not running."
35 exit 1
36 fi
37 echo -n "Stopping $DESC: $NAME... "
38 kill `cat $PIDFILE`
39 status
40 ;;
41 restart)
42 if ! active_pidfile $PIDFILE vmtoolsd ; then
43 echo "$NAME is not running."
44 exit 1
45 fi
46 echo -n "Restarting $DESC: $NAME... "
47 kill `cat $PIDFILE`
48 sleep 2
49 $DAEMON $OPTIONS
50 status
51 ;;
52 *)
53 echo ""
54 echo -e "\033[1mUsage:\033[0m /etc/init.d/`basename $0` [start|stop|restart]"
55 echo ""
56 exit 1
57 ;;
58 esac
60 exit 0