1
0

Add systemd unit and timer

Signed-off-by: MK13 <marius@kleberonline.de>
This commit is contained in:
2021-10-14 23:28:06 +02:00
parent 0fd578ceae
commit 27f796b702
4 changed files with 24 additions and 0 deletions

6
anime-rss.service Normal file
View File

@@ -0,0 +1,6 @@
[Unit]
Description=Check for and add new episodes via anime-rss
[Service]
Type=oneshot
ExecStart=python PATH/anime-rss.py PATH/config.json PATH/animes.json

10
anime-rss.timer Normal file
View File

@@ -0,0 +1,10 @@
[Unit]
Description=Check for and add new anime via anime-rss
[Timer]
OnCalendar=*:0/55
AccuracySec=1s
Persistent=true
[Install]
WantedBy=timers.target

8
install-systemd-unit.sh Executable file
View File

@@ -0,0 +1,8 @@
#!/bin/bash
my_path=$(dirname $(realpath "$0"))
cd $my_path
cp anime-rss.timer ~/.config/systemd/user/
sed "s|PATH|$my_path|g" anime-rss.service > ~/.config/systemd/user/anime-rss.service

BIN
notfication-icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 117 KiB