add systemd files that are in prod

This commit is contained in:
2026-08-19 10:42:49 +01:00
parent 8fb8d507a4
commit c0cf0d8495
3 changed files with 34 additions and 0 deletions
+11
View File
@@ -0,0 +1,11 @@
[Unit]
Description=Hagfish — Monthly Data Ingestion
After=network-online.target
Wants=network-online.target
[Service]
Type=oneshot
WorkingDirectory=%h/hagfisk
ExecStart=%h/hagfisk/hagfisk ingest
StandardOutput=journal
StandardError=journal
+10
View File
@@ -0,0 +1,10 @@
[Unit]
Description=Run Hagfish ingestion monthly
[Timer]
OnCalendar=*-*-28 03:00:00
Persistent=true
Unit=hagfisk-ingest.service
[Install]
WantedBy=timers.target
+13
View File
@@ -0,0 +1,13 @@
[Unit]
Description=Hagfish — Faroese Fisheries Dashboard
After=network-online.target
[Service]
Type=simple
WorkingDirectory=%h/hagfisk
ExecStart=%h/hagfisk/hagfisk serve
Restart=on-failure
RestartSec=5
[Install]
WantedBy=default.target