Added alprd.conf upstart config

This commit is contained in:
Matt Hill
2014-06-10 17:00:33 -05:00
parent f5cd7eb6cb
commit 3255ccab59

24
alprd.conf Normal file
View File

@@ -0,0 +1,24 @@
# alprd - OpenALPR daemon
#
# OpenALPR daemon detects license plate in the background
description "OpenALPR daemon"
author "Matt Hill"
start on filesystem and static-network-up
stop on runlevel [016]
expect fork
respawn
respawn limit 5 30
env uid=watchtower
env gid=watchtower
env DAEMON=/usr/local/bin/alprd
env DAEMON_ARGS="-l /var/log/watchtower/alprd.log"
env PIDFILE=/var/run/alprd.pid
exec start-stop-daemon --start --quiet --pidfile $PIDFILE --exec $DAEMON --chuid $uid:$gid -- $DAEMON_ARGS