Files
smeserver-vacation/root/etc/e-smith/events/actions/contribs-possible-restart-smanager
Brian Read b936943a8f * Thu Oct 02 2025 Brian Read <brianr@koozali.org> 11.0.0-3.sme
- Fix typo in event template [SME: 13208]
- Correct check on debug config for showing route [SME: 13208]
2025-10-02 09:10:31 +01:00

8 lines
201 B
Bash

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