[Unit] Description=Tile MMO Server After=network-online.target Wants=network-online.target [Service] Type=simple User=tilemmo Group=tilemmo WorkingDirectory=/srv/tile-mmo/current Environment=NODE_ENV=production Environment=TILE_MMO_GIT_BRANCH=master Environment=TILE_MMO_REPO=/srv/tile-mmo/current Environment=TILE_MMO_DATA=/srv/tile-mmo/current/server/data # Every start (including crash recovery) hard-resets, pulls, npm installs, then runs Node. ExecStart=/srv/tile-mmo/current/deploy/start-server.sh Restart=always RestartSec=5s TimeoutStartSec=600s TimeoutStopSec=120s KillSignal=SIGTERM [Install] WantedBy=multi-user.target