[systemd] Add mailhog service
This commit is contained in:
17
systemd/.config/systemd/user/mailhog.service
Normal file
17
systemd/.config/systemd/user/mailhog.service
Normal file
@ -0,0 +1,17 @@
|
||||
[Unit]
|
||||
Description=Mailhog
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/env /usr/local/bin/mailhog > /dev/null 2>&1 &
|
||||
Restart=on-failure
|
||||
SuccessExitStatus=3 4
|
||||
RestartForceExitStatus=3 4
|
||||
|
||||
# Hardening
|
||||
SystemCallArchitectures=native
|
||||
MemoryDenyWriteExecute=true
|
||||
NoNewPrivileges=true
|
||||
|
||||
[Install]
|
||||
WantedBy=default.target
|
||||
Reference in New Issue
Block a user