SATS/daemon

18 lines
394 B
Plaintext
Raw Normal View History

2017-09-26 15:44:11 +00:00
#!/bin/bash
2017-01-26 13:23:50 +00:00
ABSPATH=$( dirname $(realpath $0) );
2017-01-26 13:23:50 +00:00
2017-09-26 15:44:11 +00:00
source $ABSPATH/lib/include/bash/const;
source $ABSPATH/lib/include/bash/func;
2017-07-21 10:44:45 +00:00
# (1) Check synchronization done #
if [ ! -e /target/sync ]; then
slog "[!] not synced yet, aborting" - "daemon" && exit 127;
fi;
# (2) Get the list of etrees #
cat $ETREE_CONF | \
while read etree; do
2017-09-26 15:44:11 +00:00
sudo systemctl restart sats-feature@$etree.service;
done;