Migrate MVLog worker to webserver-local deployment

This commit is contained in:
hbrain 2026-06-07 15:22:03 +00:00
parent 8fc2e3b4c9
commit 85c4333e77
6 changed files with 126 additions and 19 deletions

View file

@ -0,0 +1,13 @@
[Unit]
Description=MVLog movmaker worker (webserver local)
Wants=network-online.target
After=network-online.target
[Service]
Type=oneshot
WorkingDirectory=/srv/mvlog/app
ExecStart=/srv/mvlog/app/mvlog_worker.py --local --remote-root /var/www/html --work-dir /srv/mvlog/work
User=hbrain
Group=www-data
UMask=0002
TimeoutStartSec=12h

View file

@ -0,0 +1,11 @@
[Unit]
Description=Run MVLog movmaker worker periodically on webserver
[Timer]
OnBootSec=2min
OnUnitInactiveSec=5min
AccuracySec=30s
Persistent=true
[Install]
WantedBy=timers.target