Vanguard media stack: ingest, copyparty, Syncthing, normalize sweep, Authentik, Jellyfin + Vanguard Metadata plugin, MariaDB, Gitea, bot runtime
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
15
systemd/dumpd.service
Normal file
15
systemd/dumpd.service
Normal file
@@ -0,0 +1,15 @@
|
||||
[Unit]
|
||||
RequiresMountsFor=/srv/media
|
||||
Description=Dump-tonight endpoint (127.0.0.1:8080)
|
||||
After=network.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 /usr/local/bin/dumpd.py
|
||||
Environment=DUMP_USERS=/etc/vanguard/dump-users.txt
|
||||
Environment=DUMP_TZ=America/New_York
|
||||
Restart=always
|
||||
RestartSec=3
|
||||
User=root
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
10
systemd/normalize-sweep.service
Normal file
10
systemd/normalize-sweep.service
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Normalize finished recordings/clips to the editing standard
|
||||
RequiresMountsFor=/srv/media
|
||||
After=docker.service
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/normalize-sweep.sh
|
||||
Nice=15
|
||||
IOSchedulingClass=idle
|
||||
10
systemd/normalize-sweep.timer
Normal file
10
systemd/normalize-sweep.timer
Normal file
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=Run normalize sweep every 5 minutes
|
||||
|
||||
[Timer]
|
||||
OnBootSec=2min
|
||||
OnUnitActiveSec=5min
|
||||
AccuracySec=30s
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
7
systemd/trash-purge.service
Normal file
7
systemd/trash-purge.service
Normal file
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
RequiresMountsFor=/srv/media
|
||||
Description=Purge dumped nights older than 3 days
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/local/bin/trash-purge.sh
|
||||
9
systemd/trash-purge.timer
Normal file
9
systemd/trash-purge.timer
Normal file
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Daily trash purge
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-* 05:00:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user