mirror of
https://github.com/searxng/searxng.git
synced 2025-07-31 00:52:22 +02:00
filtron.sh: add 'install rules' command
Signed-off-by: Markus Heiser <markus.heiser@darmarit.de>
This commit is contained in:
parent
0d6153db12
commit
e6bf2038c3
2 changed files with 18 additions and 2 deletions
16
utils/lib.sh
16
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
|
||||
# ------
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue