Skip to content

Instantly share code, notes, and snippets.

@sofar
Created January 18, 2016 01:25
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save sofar/44bec5c35eb4ca996abd to your computer and use it in GitHub Desktop.
Save sofar/44bec5c35eb4ca996abd to your computer and use it in GitHub Desktop.
/etc/systemd/system/minetest@.service
[Unit]
Description=Minetest server
After=systemd-user-sessions.service
[Service]
User=minetest
Type=simple
Restart=always
WorkingDirectory=/home/minetest/worlds/%I
ExecStart=/usr/local/bin/minetestserver --world . --config server.conf
[Install]
WantedBy=multi-user.target
Alias=minetest@%i.service
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment