2 # Start/stop the tuer status updater.
5 # Provides: tuer_presence
6 # Required-Start: $remote_fs $syslog $time tuer_core
7 # Required-Stop: $remote_fs $syslog $time tuer_core
8 # Default-Start: 2 3 4 5
12 EXE_TRACK=/flash/tuer/r3-eventbroker_zmq
17 PIDFILE_TRACK=${DIR_RUN}/r3-eventbroker_zmq.pid
18 test -f $EXE_TRACK || exit 1
19 if [ ! -d $DIR_RUN ]; then
20 mkdir -p $DIR_RUN || exit 2
21 chown -R $DOOR_USR:$DOOR_GRP $DIR_RUN
24 . /lib/lsb/init-functions
26 # Read the system's locale and set cron's locale. This locale
27 # will be inherited by cron (used to set charset of emails)
28 # and tasks running under it.
32 log_daemon_msg "Starting r3 event broker" "r3-eventbroker_zmq"
33 start-stop-daemon --start --quiet --pidfile $PIDFILE_TRACK -b -m -c $DOOR_USR -g $DOOR_GRP --startas $EXE_TRACK -- $CFG_TRACK
37 log_daemon_msg "Stopping r3 event broker" "r3-eventbroker_zmq"
38 start-stop-daemon --stop --quiet --pidfile $PIDFILE_TRACK -m --retry TERM/1/TERM/1/KILL
45 *) log_action_msg "Usage: $0 {start|stop|restart|reload|force-reload}"