mirror of
https://github.com/jhillyerd/inbucket.git
synced 2025-12-18 01:57:02 +00:00
Create systemd service unit file for #47
- Switch ubuntu from upstart to systemd - Switch redhat from init.d to systemd
This commit is contained in:
@@ -20,6 +20,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
|
|||||||
- Removed legacy `integral` theme, as most new features only in `bootstrap`
|
- Removed legacy `integral` theme, as most new features only in `bootstrap`
|
||||||
- Removed old RESTful APIs, must use `/api/v1` base URI now
|
- Removed old RESTful APIs, must use `/api/v1` base URI now
|
||||||
- Allow increased local-part length of 128 chars for Mailgun
|
- Allow increased local-part length of 128 chars for Mailgun
|
||||||
|
- RedHat and Ubuntu now use systemd instead of legacy init systems
|
||||||
|
|
||||||
[1.1.0] - 2016-09-03
|
[1.1.0] - 2016-09-03
|
||||||
--------------------
|
--------------------
|
||||||
|
|||||||
@@ -3,6 +3,6 @@
|
|||||||
notifempty
|
notifempty
|
||||||
create 0644 inbucket inbucket
|
create 0644 inbucket inbucket
|
||||||
postrotate
|
postrotate
|
||||||
[ -x /sbin/reload ] && /sbin/reload inbucket >/dev/null 2>&1 || true
|
[ -x /bin/systemctl ] && /bin/systemctl reload inbucket >/dev/null 2>&1 || true
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
20
etc/redhat/inbucket.service
Normal file
20
etc/redhat/inbucket.service
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Inbucket Disposable Email Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=inbucket
|
||||||
|
Group=inbucket
|
||||||
|
|
||||||
|
ExecStart=/opt/inbucket/inbucket -logfile /var/log/inbucket.log /etc/opt/inbucket.conf
|
||||||
|
|
||||||
|
# Re-open log file after rotation
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
|
# Give SMTP connections time to drain
|
||||||
|
TimeoutStopSec=20
|
||||||
|
KillMode=mixed
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
@@ -3,6 +3,6 @@
|
|||||||
notifempty
|
notifempty
|
||||||
create 0644 inbucket inbucket
|
create 0644 inbucket inbucket
|
||||||
postrotate
|
postrotate
|
||||||
[ -e /etc/init.d/inbucket ] && /etc/init.d/inbucket reload >/dev/null 2>&1 || true
|
[ -x /bin/systemctl ] && /bin/systemctl reload inbucket >/dev/null 2>&1 || true
|
||||||
endscript
|
endscript
|
||||||
}
|
}
|
||||||
20
etc/ubuntu/inbucket.service
Normal file
20
etc/ubuntu/inbucket.service
Normal file
@@ -0,0 +1,20 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Inbucket Disposable Email Service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
User=inbucket
|
||||||
|
Group=inbucket
|
||||||
|
|
||||||
|
ExecStart=/opt/inbucket/inbucket -logfile /var/log/inbucket.log /etc/opt/inbucket.conf
|
||||||
|
|
||||||
|
# Re-open log file after rotation
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
|
||||||
|
# Give SMTP connections time to drain
|
||||||
|
TimeoutStopSec=20
|
||||||
|
KillMode=mixed
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
Reference in New Issue
Block a user