mirror of
https://github.com/jhillyerd/inbucket.git
synced 2026-01-08 04:01:55 +00:00
Ubuntu etc files
- Point RedHat README to website - Add ubuntu upstart, logrotate configs
This commit is contained in:
29
etc/ubuntu-12/inbucket-upstart.conf
Normal file
29
etc/ubuntu-12/inbucket-upstart.conf
Normal file
@@ -0,0 +1,29 @@
|
||||
# inbucket - disposable email service
|
||||
#
|
||||
# Inbucket is an SMTP server with a web interface for testing application
|
||||
# functionality
|
||||
|
||||
description "inbucket - disposable email service"
|
||||
author "http://jhillyerd.github.com/inbucket"
|
||||
|
||||
start on (local-filesystems and net-device-up IFACE!=lo)
|
||||
stop on runlevel [!2345]
|
||||
|
||||
env program=/opt/inbucket/inbucket
|
||||
env config=/etc/opt/inbucket.conf
|
||||
env logfile=/var/log/inbucket.log
|
||||
env runas=inbucket
|
||||
|
||||
# Give SMTP connections time to drain
|
||||
kill timeout 20
|
||||
|
||||
pre-start script
|
||||
[ -x $program ]
|
||||
[ -r $config ]
|
||||
touch $logfile
|
||||
chown $runas: $logfile
|
||||
# Allow bind to ports under 1024
|
||||
setcap 'cap_net_bind_service=+ep' $program
|
||||
end script
|
||||
|
||||
exec start-stop-daemon --start --chuid $runas --exec $program -- -logfile $logfile $config
|
||||
Reference in New Issue
Block a user