SATS/daemon

18 lines
394 B
Bash
Executable File

#!/bin/bash
ABSPATH=$( dirname $(realpath $0) );
source $ABSPATH/lib/include/bash/const;
source $ABSPATH/lib/include/bash/func;
# (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
sudo systemctl restart sats-feature@$etree.service;
done;