watcher and route reporter service for .home routes

This commit is contained in:
2025-04-07 00:00:21 -07:00
parent 5c84f13242
commit fde004cf36
2 changed files with 81 additions and 0 deletions

View File

@@ -0,0 +1,12 @@
[Unit]
Description=Watch cosmos.config.json and trigger routes.sh
After=network.target
[Service]
User=guy
ExecStart=/bin/bash -c 'while inotifywait -q -e modify /var/lib/cosmos/cosmos.config.json; do $HOME/routes.sh; done'
Restart=always
RestartSec=5
[Install]
WantedBy=multi-user.target