timers start services

master
JoYo 2022-06-08 21:22:38 -04:00
parent 773d17346b
commit d6aef160af
3 changed files with 13 additions and 6 deletions

View File

@ -95,8 +95,9 @@ This include the Steam Deck.
```
cp banana.py /home/deck/
cp banana.timer /etc/systemd/system/
cp banana.timer banana.service /etc/systemd/system/
sudo systemctl enable banana.timer
sudo systemctl enable banana.service
```
# Linux Unschedule

11
banana.service Normal file
View File

@ -0,0 +1,11 @@
[Unit]
Description=Run banana daily and on boot.
Wants=banana.timer
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 /home/deck/banana.py
User=deck
[Install]
WantedBy=multi-user.target

View File

@ -7,8 +7,3 @@ Persistent=true
[Install]
WantedBy=timers.target
[Service]
Type=oneshot
ExecStart=/usr/bin/python3 /home/deck/banana.py
User=deck