[Unit] Description=Brass & Sigil Minecraft server (with web admin panel) After=network-online.target Wants=network-online.target [Service] Type=simple User=matt Group=matt WorkingDirectory=/home/matt/brass-sigil-server ExecStart=/home/matt/brass-sigil-server/brass-sigil-server run Restart=on-failure RestartSec=10s # Give the JVM enough room to start up gracefully on Stop (sends "stop" to MC, # waits for clean shutdown, then escalates to SIGTERM/SIGKILL). TimeoutStopSec=60s KillMode=mixed # Tighten attack surface -- typical for a service running as a regular user. PrivateTmp=true ProtectSystem=full NoNewPrivileges=true [Install] WantedBy=multi-user.target