Last active
April 13, 2020 08:54
-
-
Save paresy/3697cbd5ccbe939b3f7d0891647a41ac to your computer and use it in GitHub Desktop.
Start service for switchOff
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
*** 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