# audiopen-ingest path + service units — example # # These two units let the ingest wrapper fire automatically whenever # inbox/raw/ gains a file. Install: # # cp audiopen-ingest.path.example ~/.config/systemd/user/audiopen-ingest.path # cp audiopen-ingest.service.example ~/.config/systemd/user/audiopen-ingest.service # systemctl --user daemon-reload # systemctl --user enable --now audiopen-ingest.path # # (Adjust %h paths or vault location as needed.) # ---- audiopen-ingest.path ---- [Unit] Description=Watch council/inbox/raw for new AudioPen drops [Path] PathChanged=/var/mnt/data/projects/council/inbox/raw Unit=audiopen-ingest.service [Install] WantedBy=default.target # ---- audiopen-ingest.service ---- # (Put this in a separate file — audiopen-ingest.service — systemd does not # allow two units in one file.) # # [Unit] # Description=Normalise AudioPen drops into council/inbox/ # # [Service] # Type=oneshot # ExecStart=/var/mnt/data/projects/council/scripts/audiopen-ingest.sh # Environment=COUNCIL_REPO=/var/mnt/data/projects/council