Skip to content

Instantly share code, notes, and snippets.

@broxio
Created April 11, 2017 07:52
Show Gist options
  • Save broxio/ce9133b9b7dfff07dd0084e9dbefbdcb to your computer and use it in GitHub Desktop.
Save broxio/ce9133b9b7dfff07dd0084e9dbefbdcb to your computer and use it in GitHub Desktop.
Reload nginx service via salt.
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