Skip to content

Latest commit

 

History

History
34 lines (25 loc) · 511 Bytes

systemd.md

File metadata and controls

34 lines (25 loc) · 511 Bytes

Run as Linux service with systemd

Create /etc/systemd/system/diceio.service file :

[Unit]
Description=dice.io server
After=network.target
StartLimitIntervalSec=0

[Service]
Type=simple
Restart=always
RestartSec=1
User=www-data
ExecStart=/usr/bin/diceio

[Install]
WantedBy=multi-user.target

Note: adjust User and ExecStart parameters to your needs.

Then start service :

$ systemctl start diceio

To automatically start service on boot :

$ systemctl enable diceio