Add systemd units

This commit is contained in:
Jeffrey Serio 2024-04-02 22:06:54 -05:00
parent bdc8562d90
commit 771024bd3b
8 changed files with 90 additions and 0 deletions

View 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

View 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

View 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

View File

@ -0,0 +1,9 @@
[Unit]
Description=Run seed-armbian-torrents.nu
[Timer]
OnCalendar=weekly
Persistent=true
[Install]
WantedBy=timers.target

View 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

View File

@ -0,0 +1,9 @@
[Unit]
Description=Run torrentstats-html.nu
[Timer]
OnCalendar=hourly
Persistent=true
[Install]
WantedBy=timers.target

View 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

View File

@ -0,0 +1,9 @@
[Unit]
Description=Add trackers to Transmission torrents every 30 minutes
[Timer]
OnBootSec=30s
OnUnitActiveSec=30min
[Install]
WantedBy=timers.target