From e6bf2038c38599a278ca110276c942e7e111d207 Mon Sep 17 00:00:00 2001 From: Markus Heiser Date: Tue, 11 Feb 2020 15:58:35 +0100 Subject: filtron.sh: add 'install rules' command Signed-off-by: Markus Heiser --- utils/lib.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) (limited to 'utils/lib.sh') diff --git a/utils/lib.sh b/utils/lib.sh index 59ad12229..991fe77fa 100755 --- a/utils/lib.sh +++ b/utils/lib.sh @@ -569,7 +569,7 @@ systemd_remove_service() { systemd_activate_service() { - # usage: systemd_activate_service "${SERVICE_NAME}"w + # usage: systemd_activate_service "${SERVICE_NAME}" rst_title "Activate ${1} (service)" section echo @@ -594,6 +594,20 @@ systemctl disable ${1}.service EOF } +systemd_restart_service() { + + # usage: systemd_restart_service "${SERVICE_NAME}" + + rst_title "Restart ${1} (service)" section + echo + tee_stderr <&1 +systemctl restart ${1}.service +EOF + tee_stderr <&1 +systemctl status --no-pager ${1}.service +EOF +} + # Apache # ------ -- cgit v1.2.3