diff options
author | Markus Heiser <markus.heiser@darmarit.de> | 2020-02-11 15:58:35 +0100 |
---|---|---|
committer | Markus Heiser <markus.heiser@darmarit.de> | 2020-02-11 15:58:35 +0100 |
commit | e6bf2038c38599a278ca110276c942e7e111d207 (patch) | |
tree | f43d0d6536ad39e8511fdfae0eca4afda026b92b /utils/lib.sh | |
parent | 0d6153db127133e59137f4359975bafd705e0f4b (diff) | |
download | searxng-e6bf2038c38599a278ca110276c942e7e111d207.tar.gz searxng-e6bf2038c38599a278ca110276c942e7e111d207.zip |
filtron.sh: add 'install rules' command
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
Diffstat (limited to 'utils/lib.sh')
-rwxr-xr-x | utils/lib.sh | 16 |
1 files changed, 15 insertions, 1 deletions
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 <<EOF | bash 2>&1 +systemctl restart ${1}.service +EOF + tee_stderr <<EOF | bash 2>&1 +systemctl status --no-pager ${1}.service +EOF +} + # Apache # ------ |