Skip to content

Instantly share code, notes, and snippets.

@haad
Created July 26, 2013 09:13
Show Gist options
  • Save haad/6087473 to your computer and use it in GitHub Desktop.
Save haad/6087473 to your computer and use it in GitHub Desktop.
eafis
# 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"
@haad
Copy link
Author

haad commented Jul 26, 2013

142f176b4d66dd93c26433cb2b2f6c5e eafis3.conf

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment