Created
April 11, 2017 07:52
-
-
Save broxio/ce9133b9b7dfff07dd0084e9dbefbdcb to your computer and use it in GitHub Desktop.
Reload nginx service via salt.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mad@max:/srv/pillar$ sudo salt ngx000 nginx.configtest | |
ngx000: | |
---------- | |
comment: | |
Syntax OK | |
result: | |
True | |
stdout: | |
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok | |
nginx: configuration file /etc/nginx/nginx.conf test is successful | |
mad@max:/srv/pillar$ sudo salt ngx000 nginx.signal reload | |
ngx000: | |
Command: "/usr/sbin/nginx -s reload" completed successfully! | |
mad@max:/srv/pillar$ |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment