straywild-dedicated-server/systemd/straywild-server.service

25 lines
624 B
Desktop File

[Unit]
Description=straywild Dedicated Server
After=network-online.target
Wants=network-online.target
[Service]
Type=simple
User=straywild
Group=straywild
WorkingDirectory=/opt/straywild-server/current
Environment=TZ=UTC
EnvironmentFile=-/etc/straywild-server.env
ExecStart=/opt/straywild-server/current/straywildServer.x86_64 -- --config=/etc/straywild-server.cfg
Restart=on-failure
RestartSec=5
NoNewPrivileges=true
PrivateTmp=true
ProtectSystem=strict
ProtectHome=true
ReadWritePaths=/var/lib/straywild-server
CapabilityBoundingSet=
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
[Install]
WantedBy=multi-user.target