mirror of
https://github.com/kerberos-io/openalpr-base.git
synced 2025-10-06 18:42:48 +08:00
Added alprd.conf upstart config
This commit is contained in:
24
alprd.conf
Normal file
24
alprd.conf
Normal 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
|
||||||
|
|
Reference in New Issue
Block a user