Created
March 19, 2015 14:49
-
-
Save cedriczirtacic/aef5cc699aa4f5bf6fde to your computer and use it in GitHub Desktop.
More comprehensive restart for puppet-dashboard
This file contains hidden or 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
--- /etc/init.d/puppet-dashboard.old 2015-03-19 11:36:46.000000000 -0300 | |
+++ /etc/init.d/puppet-dashboard 2015-03-19 11:39:45.000000000 -0300 | |
@@ -78,7 +78,13 @@ | |
restart () { | |
stop | |
- start | |
+ RETVAL=$? | |
+ if [ $? -gt 0 ];then | |
+ return $RETVAL | |
+ fi | |
+ | |
+ sleep 1 | |
+ start | |
} | |
status () { |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment