5 # Required-Start: $local_fs $remote_fs
6 # Required-Stop: $local_fs $remote_fs
7 # Default-Start: 2 3 4 5
13 [ "$pid" != "" ] && kill $pid
16 read CMDLINE < /proc/cmdline
20 echo "Weston disabled"
30 # This is all a nasty hack
31 if test -z "$XDG_RUNTIME_DIR"; then
32 export XDG_RUNTIME_DIR=/run/user/root
33 mkdir --parents $XDG_RUNTIME_DIR
34 chmod 0700 $XDG_RUNTIME_DIR
41 echo "Stopping Weston"
52 echo "usage: $0 { start | stop | restart }"