38 lines
796 B
Desktop File
38 lines
796 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
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|