41 lines
902 B
Desktop File
41 lines
902 B
Desktop File
[Unit]
|
|
Description=de-praxis game relay
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=de-praxis
|
|
Group=de-praxis
|
|
WorkingDirectory=/opt/de-praxis
|
|
EnvironmentFile=/etc/de-praxis/server.env
|
|
Environment="JAVA_OPTS=-Xms64m -Xmx256m -XX:ActiveProcessorCount=2 -XX:+ExitOnOutOfMemoryError"
|
|
ExecStart=/opt/de-praxis/bin/server
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
TimeoutStopSec=15
|
|
UMask=0077
|
|
StateDirectory=de-praxis
|
|
StateDirectoryMode=0700
|
|
NoNewPrivileges=true
|
|
PrivateTmp=true
|
|
PrivateDevices=true
|
|
ProtectSystem=strict
|
|
ProtectHome=true
|
|
ProtectKernelTunables=true
|
|
ProtectKernelModules=true
|
|
ProtectKernelLogs=true
|
|
ProtectControlGroups=true
|
|
RestrictSUIDSGID=true
|
|
RestrictRealtime=true
|
|
LockPersonality=true
|
|
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
|
|
CapabilityBoundingSet=
|
|
AmbientCapabilities=
|
|
ReadWritePaths=/var/lib/de-praxis
|
|
LimitNOFILE=1024
|
|
TasksMax=96
|
|
MemoryMax=512M
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|