smeserver-vacation/root/etc/e-smith/events/actions/contribs-possible-restart-smanager

9 lines
202 B
Plaintext
Raw Normal View History

#!/bin/sh
if (systemctl list-unit-files |grep smanager) then
echo "Restarting smanager"
/sbin/e-smith/signal-event manager2-refresh;
systemctl restart smanager
else
echo "Smanager not loaded"
fi