initial commit
This commit is contained in:
28
deploy/systemd/node-agent.service
Normal file
28
deploy/systemd/node-agent.service
Normal file
@@ -0,0 +1,28 @@
|
||||
[Unit]
|
||||
Description=HexaHost GameCloud Node Agent
|
||||
Documentation=https://github.com/hexahost/gamecloud
|
||||
After=network-online.target docker.service
|
||||
Wants=network-online.target
|
||||
Requires=docker.service
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=hexahost
|
||||
Group=hexahost
|
||||
EnvironmentFile=/etc/hexahost-gamecloud/node-agent.env
|
||||
ExecStart=/usr/local/bin/hexahost-node-agent
|
||||
Restart=on-failure
|
||||
RestartSec=5
|
||||
TimeoutStopSec=60
|
||||
KillMode=mixed
|
||||
|
||||
# Hardening
|
||||
NoNewPrivileges=true
|
||||
ProtectSystem=strict
|
||||
ProtectHome=true
|
||||
PrivateTmp=true
|
||||
ReadWritePaths=/var/lib/hexahost-gamecloud
|
||||
AmbientCapabilities=
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user