e-smith-base/root/etc/e-smith/events/actions/systemd-isolate

5 lines
180 B
Bash

#!/usr/bin/bash
/usr/bin/systemctl daemon-reload
/usr/bin/systemctl -q is-active sme-server.target || /usr/bin/systemctl isolate sme-server.target
/usr/bin/systemctl daemon-reload