mirror of
https://codeberg.org/hyperreal/admin-scripts
synced 2024-11-25 09:03:41 +01:00
Add systemd units
This commit is contained in:
parent
bdc8562d90
commit
771024bd3b
14
systemd-user/breezewiki.service
Normal file
14
systemd-user/breezewiki.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=BreezeWiki service
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=racket /home/jas/repos/breezewiki/dist.rkt
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
Restart=always
|
||||||
|
SyslogIdentifier=BreezeWiki
|
||||||
|
WorkingDirectory=/home/jas/repos/breezewiki
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
14
systemd-user/gmcapsule.service
Normal file
14
systemd-user/gmcapsule.service
Normal file
@ -0,0 +1,14 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=GmCapsule: extensible Gemini/Titan server
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=simple
|
||||||
|
ExecStart=/home/jas/.local/bin/gmcapsuled
|
||||||
|
ExecReload=/bin/kill -HUP $MAINPID
|
||||||
|
Restart=always
|
||||||
|
Environment="PYTHONUNBUFFERED=1"
|
||||||
|
SyslogIdentifier=gmcapsule
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
11
systemd-user/seed-armbian-torrents.service
Normal file
11
systemd-user/seed-armbian-torrents.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run seed-armbian-torrents.nu
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=nu /home/jas/homelab-scripts/seed-armbian-torrents.nu
|
||||||
|
SyslogIdentifier=seed-armbian-torrents
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
9
systemd-user/seed-armbian-torrents.timer
Normal file
9
systemd-user/seed-armbian-torrents.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run seed-armbian-torrents.nu
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=weekly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
11
systemd-user/torrentstats-html.service
Normal file
11
systemd-user/torrentstats-html.service
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run torrentstats-html.nu
|
||||||
|
After=network.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
ExecStart=nu /home/jas/homelab-scripts/torrentstats-html.nu
|
||||||
|
SyslogIdentifier=torrentstats-html
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
9
systemd-user/torrentstats-html.timer
Normal file
9
systemd-user/torrentstats-html.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Run torrentstats-html.nu
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnCalendar=hourly
|
||||||
|
Persistent=true
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
13
systemd-user/transmission-trackers.service
Normal file
13
systemd-user/transmission-trackers.service
Normal file
@ -0,0 +1,13 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Add trackers to Transmission torrents
|
||||||
|
After=network.target network-online.target
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=oneshot
|
||||||
|
WorkingDirectory=/home/jas/transmission-trackers
|
||||||
|
ExecStart=/home/jas/transmission-trackers/venv/bin/python transmission-trackers.py
|
||||||
|
SyslogIdentifier=transmission-trackers
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
9
systemd-user/transmission-trackers.timer
Normal file
9
systemd-user/transmission-trackers.timer
Normal file
@ -0,0 +1,9 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Add trackers to Transmission torrents every 30 minutes
|
||||||
|
|
||||||
|
[Timer]
|
||||||
|
OnBootSec=30s
|
||||||
|
OnUnitActiveSec=30min
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=timers.target
|
Loading…
Reference in New Issue
Block a user