debmaker/ressources/mailhog/rootfs/usr/lib/systemd/system/mailhog.service

38 lines
758 B
Desktop File

[Unit]
Description=service mailhog
Documentation=https://github.com/mautrix/MailHog
After=network.target
[Service]
User=mailhog
Group=mailhog
EnvironmentFile=/etc/default/mailhog
ExecStart=/usr/bin/mailhog
WorkingDirectory=/tmp
Restart=on-failure
RestartSec=30s
#ReadWritePaths=/tmp
NoNewPrivileges=yes
MemoryDenyWriteExecute=true
PrivateDevices=yes
PrivateTmp=yes
ProtectHome=yes
ProtectSystem=strict
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictRealtime=true
LockPersonality=true
ProtectKernelLogs=true
ProtectKernelTunables=true
ProtectHostname=true
ProtectKernelModules=true
PrivateUsers=true
ProtectClock=true
SystemCallArchitectures=native
SystemCallErrorNumber=EPERM
SystemCallFilter=@system-service
[Install]
WantedBy=multi-user.target