Skip to content

Instantly share code, notes, and snippets.

@cedriczirtacic
Created March 19, 2015 14:49
Show Gist options
  • Save cedriczirtacic/aef5cc699aa4f5bf6fde to your computer and use it in GitHub Desktop.
Save cedriczirtacic/aef5cc699aa4f5bf6fde to your computer and use it in GitHub Desktop.
More comprehensive restart for puppet-dashboard
--- /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