This change allows fwknopd to write syslog messages to traditional syslog files while running under upstart. Not forking into the background resulted in messages meant for syslog were captured under /var/log/upstart/fwknop.log.
26 lines
652 B
Plaintext
26 lines
652 B
Plaintext
# fwknopd - Single Packet Authorization daemon
|
|
#
|
|
# The fwknopd daemon provides a Single Packet Authorization layer to services
|
|
# such as SSHD.
|
|
|
|
description "fwknopd daemon"
|
|
|
|
start on (local-filesystems and net-device-up IFACE!=lo)
|
|
stop on runlevel [!2345]
|
|
|
|
respawn
|
|
respawn limit 10 5
|
|
umask 022
|
|
|
|
### uncomment the post-start lines below if you want email notifications
|
|
### whenever fwknopd is (re)started - be sure to edit the EMAIL_ADDR variable
|
|
# post-start script
|
|
# HOST=`hostname`
|
|
# EMAIL_ADDR=you@domain.com
|
|
# mail -s "Starting fwknop on $HOST" $EMAIL_ADDR < /dev/null > /dev/null 2>&1
|
|
# end script
|
|
|
|
expect fork
|
|
|
|
exec /usr/sbin/fwknopd
|