4 prefix=/usr/lib/switchProfByMeeting
5 PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:$prefix
7 #sbindir=${exec_prefix}/sbin
9 DAEMON=${prefix}/switch_backend.py
11 DESC="switch profile by meeting"
13 #INITCTL=/sbin/initctl
15 test -x $DAEMON || exit 0
19 ps ax |grep $NAME |grep -v grep|grep -v init|awk '{print $1}'|while read pid
29 echo -n "Starting $DESC: "
30 start-stop-daemon --start --quiet -c $USER \
31 --background --exec "$DAEMON"
38 echo -n "Stopping $DESC: "
39 start-stop-daemon --stop --quiet --oknodo --user $USER \
47 reload|restart|force-reload)
49 # If the "reload" option is implemented, move the "force-reload"
50 # option to the "reload" entry above. If not, "force-reload" is
51 # just the same as "restart".
58 echo "Usage: $N {start|stop|restart|force-reload}" >&2