timers start services
parent
773d17346b
commit
d6aef160af
|
@ -95,8 +95,9 @@ This include the Steam Deck.
|
||||||
|
|
||||||
```
|
```
|
||||||
cp banana.py /home/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.timer
|
||||||
|
sudo systemctl enable banana.service
|
||||||
```
|
```
|
||||||
|
|
||||||
# Linux Unschedule
|
# Linux Unschedule
|
||||||
|
|
|
@ -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
|
|
@ -7,8 +7,3 @@ Persistent=true
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
WantedBy=timers.target
|
WantedBy=timers.target
|
||||||
|
|
||||||
[Service]
|
|
||||||
Type=oneshot
|
|
||||||
ExecStart=/usr/bin/python3 /home/deck/banana.py
|
|
||||||
User=deck
|
|
||||||
|
|
Loading…
Reference in New Issue