updater script and watcher service for dawon and viterbi

This commit is contained in:
2025-04-07 07:48:23 +00:00
parent fde004cf36
commit 292cebfe3a
4 changed files with 162 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=ubuntu
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