gluon/package/gluon-core/files/usr/bin/gluon-reload

18 lines
224 B
Bash
Executable File

#!/bin/sh
cd "/lib/gluon/reload.d" || exit 1
err=0
for script in *; do
echo "Reloading: ${script}"
./"$script" || err=1
done
if [ $err -eq 1 ]; then
echo 'One or more daemons failed to reload.' >&2
exit 1
fi
exit 0