[Unit] Description=copystation [Service] Type=simple Restart=always RestartSec=5s WorkingDirectory=/home/pi/ ExecStart=/home/pi/copystation Restart=always PermissionsStartOnly=true StandardOutput=syslog StandardError=syslog SyslogIdentifier=sleepservice [Install] WantedBy=multi-user.target # this goes to: /etc/systemd/system/copystation.service # and chmod +x /home/pi/copystation (binary)