Created
July 26, 2013 09:13
-
-
Save haad/6087473 to your computer and use it in GitHub Desktop.
eafis
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# ExpressID AFIS 3 - Innovatrics ExpressID AFIS 3 AfisMQ daemon | |
# | |
# This is ExpressID AFIS 3 upstart script (put it into /etc/init/ and use 'initctl status|start|stop eafis3' command) | |
description "ExpressID AFIS 3" | |
# CONFIGURATION | |
env PROG="/opt/expressid_afis3/eafis3-cluster/eafis3.sh" | |
start on filesystem or runlevel [2345] | |
stop on runlevel [!2345] | |
# respawning means that you want that task to be retried until it exits with zero (0) as its exit code | |
respawn | |
# respawn the job up to 10 times within a 10 second period. | |
# If the job exceeds these values, it will be stopped and | |
# marked as failed. | |
respawn limit 10 10 | |
umask 022 | |
setuid eafis3 | |
setgid eafis3 | |
# Connects the job's standard input, standard output and standard error file descriptors to /dev/null | |
#console none | |
# RUN | |
exec "$PROG" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
142f176b4d66dd93c26433cb2b2f6c5e eafis3.conf