From d6aef160af3920a47f9d00257af23896c8a61069 Mon Sep 17 00:00:00 2001 From: JoYo <> Date: Wed, 8 Jun 2022 21:22:38 -0400 Subject: [PATCH] timers start services --- README.mdown | 3 ++- banana.service | 11 +++++++++++ banana.timer | 5 ----- 3 files changed, 13 insertions(+), 6 deletions(-) create mode 100644 banana.service diff --git a/README.mdown b/README.mdown index cabdafe..01d1be6 100644 --- a/README.mdown +++ b/README.mdown @@ -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 diff --git a/banana.service b/banana.service new file mode 100644 index 0000000..9c25ed5 --- /dev/null +++ b/banana.service @@ -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 diff --git a/banana.timer b/banana.timer index 23a0957..67b2084 100644 --- a/banana.timer +++ b/banana.timer @@ -7,8 +7,3 @@ Persistent=true [Install] WantedBy=timers.target - -[Service] -Type=oneshot -ExecStart=/usr/bin/python3 /home/deck/banana.py -User=deck