Added restart_cmd variable

This commit is contained in:
Tobias Herre 2024-10-09 13:23:31 +02:00
parent 2b4d9c0a28
commit d0f4cad4d1
1 changed files with 4 additions and 0 deletions

View File

@ -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",