Skip to content

Latest commit

 

History

History
21 lines (17 loc) · 513 Bytes

readme.md

File metadata and controls

21 lines (17 loc) · 513 Bytes

How to install

  1. Ensure the script that you want to run at shutdown is executable:
chmod +x autoupdate.sh
  1. Move file pre-shutdown.service to etc/systemd/system
  2. Change exact directory in this .service file
  3. Reload systemd, enable the service so it starts at boot time, then start it up:
sudo systemctl daemon-reload
sudo systemctl enable pre-shutdown.service
sudo systemctl start pre-shutdown.service
  • Check everthing is ok:
sudo systemctl status pre-shutdown.service