From 3255ccab59cf2c38bbdd2b580dc10fc814b8c309 Mon Sep 17 00:00:00 2001 From: Matt Hill Date: Tue, 10 Jun 2014 17:00:33 -0500 Subject: [PATCH] Added alprd.conf upstart config --- alprd.conf | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 alprd.conf diff --git a/alprd.conf b/alprd.conf new file mode 100644 index 0000000..265fd8e --- /dev/null +++ b/alprd.conf @@ -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 +