Add systemd unit and timer
Signed-off-by: MK13 <marius@kleberonline.de>
This commit is contained in:
6
anime-rss.service
Normal file
6
anime-rss.service
Normal 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
10
anime-rss.timer
Normal 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
8
install-systemd-unit.sh
Executable 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
BIN
notfication-icon.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 117 KiB |
Reference in New Issue
Block a user