Skip to content

Add restart functionality to init.d script#1463

Merged
mperham merged 1 commit intosidekiq:masterfrom
damselem:restart-initd
Feb 6, 2014
Merged

Add restart functionality to init.d script#1463
mperham merged 1 commit intosidekiq:masterfrom
damselem:restart-initd

Conversation

@damselem
Copy link
Contributor

@damselem damselem commented Feb 6, 2014

No description provided.

@mperham
Copy link
Collaborator

mperham commented Feb 6, 2014

I'm not sure the status poll is necessary, is it?

@damselem
Copy link
Contributor Author

damselem commented Feb 6, 2014

We were using a slightly different version of this in which you would sleep an arbitrary number of seconds, specifically 8 seconds like here, but we realized that even though 8 seconds seems a reasonable amount of time between stop and start, sometimes it wouldn't be enough.

restart)
     stop
     sleep 8
     start
     ;;

This is supposed to not only check for the process to be down but to be more efficient than waiting for 8 seconds. Wdyt?

@mperham
Copy link
Collaborator

mperham commented Feb 6, 2014

Gotcha.

mperham added a commit that referenced this pull request Feb 6, 2014
Add restart functionality to init.d script
@mperham mperham merged commit 547f07a into sidekiq:master Feb 6, 2014
@damselem damselem deleted the restart-initd branch February 6, 2014 21:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants