watcher and route reporter service for .home routes
This commit is contained in:
12
galaxy/etc/systemd/system/cosmos-watcher.service
Normal file
12
galaxy/etc/systemd/system/cosmos-watcher.service
Normal 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
|
||||
Reference in New Issue
Block a user