Browse Source

add systemd files

master
HayWo 2 years ago
parent
commit
38d972a24f
Signed by: haywo GPG Key ID: CE8467F36EF907E4
  1. 9
      systemd/fridaydisco.service
  2. 6
      systemd/fridaydisco.timer

9
systemd/fridaydisco.service

@ -0,0 +1,9 @@
[Unit]
Description=Collects new songs from #firdaydisco on Mastodon
After=networt-online.target
[Service]
User=<YOUR USERNAME HERE>
WorkingDirectory=</FULL/PATH/TO>/fridaydisco
Type=oneshot
ExecStart=/usr/bin/python3 </FULL/PATH/TO>/fridaydisco/fridaydisco.py -n=25

6
systemd/fridaydisco.timer

@ -0,0 +1,6 @@
[Unit]
Description=Run frydaydisco.py every 5 minutes
[Timer]
OnBootSec=0s
OnUnitActiveSec=5min
Loading…
Cancel
Save