Files
rustbox-package-builder/packaging/rustbox.service
T
2026-10-30 13:37:19 +01:00

39 lines
845 B
Desktop File

[Unit]
Description=RustBox webmail
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=rustbox
Group=rustbox
Environment=RUSTBOX_CONFIG=/etc/rustbox/rustbox.toml
Environment=RUST_LOG=info
WorkingDirectory=/var/lib/rustbox
ExecStart=/usr/local/bin/rustbox
Restart=on-failure
RestartSec=3
StateDirectory=rustbox
StateDirectoryMode=0700
LogsDirectory=rustbox
LogsDirectoryMode=0750
UMask=0077
NoNewPrivileges=true
PrivateTmp=true
PrivateDevices=true
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectKernelModules=true
ProtectControlGroups=true
RestrictSUIDSGID=true
RestrictAddressFamilies=AF_UNIX AF_INET AF_INET6
LockPersonality=true
MemoryDenyWriteExecute=true
StandardOutput=null
StandardError=journal
ReadWritePaths=/var/lib/rustbox /var/log/rustbox
[Install]
WantedBy=multi-user.target