add systemd files that are in prod
This commit is contained in:
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user