How to setup systemd?

TEMPLATE FILE:

/lib/systemd/system/
[Unit]
Description= NinjaBot Service # change if you want
After=multi-user.target

[Service]
Type=idle

User=USER #change to your user
ExecStart=/path/to/ninja 2>&1 & # -port 8080 -host 0.0.0.0 --no-browser "2>&1 &" <- needed to run in backround

Restart=always
RestartSec=5

[Install]
WantedBy=multi-user.target

YOU HAVE TO CHANGE THE PATH AFTER MANUALLY UPDATING THE NINJA SOFTWARE! I HIGHLY RECOMMEND in software "Auto-Update"!