Here's my task:
desc "Restart nagios"
task :restart, :roles => [:db] do
sudo "/etc/init.d/nagios restart"
end
Here's the nagios log from running
1) cap nagios:restart ( on a remote machine )
2) sudo /etc/init.d/nagios restart (on the server)
[1322438347] Caught SIGTERM, shutting down...
[1322438347] Successfully shutdown... (PID=25274)
[1322438347] Nagios 3.3.1 starting... (PID=26426)
[1322438347] Local time is Sun Nov 27 23:59:07 UTC 2011
[1322438347] LOG VERSION: 2.0
[1322438347] Finished daemonizing... (New PID=26427)
[1322438354] Caught SIGTERM, shutting down...
[1322438354] Successfully shutdown... (PID=26427)
[1322438354] Nagios 3.3.1 starting... (PID=26445)
[1322438354] Local time is Sun Nov 27 23:59:14 UTC 2011
[1322438354] LOG VERSION: 2.0
[1322438354] Finished daemonizing... (New PID=26446)
After the cap restart, I can't access nagios's webpanel. After a
manual restart, it works fine.
I see no difference between the two.
Ideas?
--
* You received this message because you are subscribed to the Google Groups
"Capistrano" group.
* To post to this group, send email to [email protected]
* To unsubscribe from this group, send email to
[email protected] For more options, visit this group at
http://groups.google.com/group/capistrano?hl=en