2 # Start/stop the tuer daemon core.
5 # Provides: tuer_cardidlookup
6 # Required-Start: $remote_fs $syslog $time
7 # Required-Stop: $remote_fs $syslog $time
8 # Default-Start: 2 3 4 5
12 EXE_KEYLOOKUP=/flash/tuer/door_nick_lookup_zmq
17 PIDFILE_KEYLOOKUP=${DIR_RUN}/door_nick_lookup_server.pid
19 test -e $EXE_KEYLOOKUP || exit 1
20 if [ ! -d $DIR_RUN ]; then
21 mkdir -p $DIR_RUN || exit 2
22 chown -R $DOOR_USR:$DOOR_GRP $DIR_RUN
24 chown $DOOR_USR:$DOOR_GRP $DOOR_DEV
26 . /lib/lsb/init-functions
28 # Read the system's locale and set cron's locale. This locale
29 # will be inherited by cron (used to set charset of emails)
30 # and tasks running under it.
34 log_daemon_msg "Starting CardID Lookup Server" "door_nick_lookup_zmq"
35 start-stop-daemon --start --quiet --pidfile $PIDFILE_KEYLOOKUP -c $DOOR_USR -m -g $DOOR_GRP -b --name door_nick_lookup_zmq --startas $EXE_KEYLOOKUP -- --server
39 log_daemon_msg "Stopping CardID Lookup Server" "door_nick_lookup_zmq"
40 start-stop-daemon --stop --quiet --pidfile $PIDFILE_KEYLOOKUP -m --name door_nick_lookup_zmq
48 log_action_msg "Usage: $0 {start|stop|restart|reload|force-reload}"