Skip to content

Commit

Permalink
update poweroff
Browse files Browse the repository at this point in the history
  • Loading branch information
markyharris committed Mar 25, 2022
1 parent 798fbaf commit 1e7c2ea
Showing 1 changed file with 13 additions and 7 deletions.
20 changes: 13 additions & 7 deletions poweroff info.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Power down service information
from; https://forums.raspberrypi.com/viewtopic.php?t=147422


Code: Select all and save as poweroff.service (already in cloned directory)
Code: Select all and save as 'poweroff.service'. Available on github.
[Unit]
Description=Turn power off after shutdown
DefaultDependencies=no
Expand All @@ -16,12 +16,18 @@ Code: Select all and save as poweroff.service (already in cloned directory)
WantedBy=halt.target poweroff.target


Put poweroff.service into;
/lib/systemd/system
Power Off Service installation:
Copy 'poweroff.service' into /lib/systemd/system;
cd ~
cd /lib/systemd/system
sudo wget https://raw.githubusercontent.com/markyharris/metar/main/poweroff.service

Enable the service with;
cd /lib/systemd/system
Enable the service by entering;
sudo systemctl enable poweroff.service

Put the python script metar_poweroff.py (already in cloned directory) into;
/opt/metar_poweroff/metar_poweroff.py
Copy the python script 'metar_poweroff.py' into /opt/metar_poweroff;
cd ~
cd /opt
sudo mkdir metar_poweroff
cd metar_poweroff
sudo wget https://raw.githubusercontent.com/markyharris/metar/main/metar_poweroff.py

0 comments on commit 1e7c2ea

Please sign in to comment.