Skip to content

Instantly share code, notes, and snippets.

@paresy
Last active April 13, 2020 08:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save paresy/3697cbd5ccbe939b3f7d0891647a41ac to your computer and use it in GitHub Desktop.
Save paresy/3697cbd5ccbe939b3f7d0891647a41ac to your computer and use it in GitHub Desktop.
Start service for switchOff
*** Install with...
sudo nano /etc/systemd/system/switchOff.service
sudo systemctl start switchOff
sudo systemctl enable switchOff
*************************************
[Unit]
Description=SwitchOff Tool
After = NetworkManager-wait-online.service network.target network-online.target dbus.service
Wants = NetworkManager-wait-online.service network-online.target
Requires = dbus.service
[Service]
ExecStart=/home/pi/Downloads/switchOff
Restart=always
User=pi
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=SwitchOff
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment