[Unit] Description=Node.js rotator control [Service] ExecStart=/usr/bin/node /home/rotator/rotator/rotator.js # Required on some systems WorkingDirectory=/home/rotator/rotator Restart=always # Restart service after 10 seconds if node service crashes RestartSec=10 # Output to syslog StandardOutput=syslog StandardError=syslog SyslogIdentifier=nodejs-rotator [Install] WantedBy=multi-user.target