From d0f4cad4d17e98c67edd5d7dd1145ca735b68b65 Mon Sep 17 00:00:00 2001 From: Tobias Herre Date: Wed, 9 Oct 2024 13:23:31 +0200 Subject: [PATCH] Added restart_cmd variable --- nginx.cf | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/nginx.cf b/nginx.cf index 1377ee9..2b9b65b 100644 --- a/nginx.cf +++ b/nginx.cf @@ -13,6 +13,7 @@ centos:: "cfg_dir" string => "/etc/nginx"; "vhost_cfg_dir" string => "$(cfg_dir)/conf.d"; "service_name" string => "nginx"; + "restart_cmd" string => "/usr/bin/systemctl restart $(service_name)"; debian:: "www_dir" string => "/var/www",unless => isvariable( $(this.promiser) ) ; "www_user" string => "www-data"; @@ -20,6 +21,9 @@ debian:: "cfg_dir" string => "/etc/nginx"; "vhost_cfg_dir" string => "$(cfg_dir)/conf.d"; "service_name" string => "nginx"; + "restart_cmd" string => "/usr/bin/systemctl restart $(service_name)"; +freebsd:: + "restart_cmd" string => "/usr/sbin/service $(service_name) restart"; any:: "service_deps" slist => { "nginx_pkgs_installed",