Skip to content

add a proper sleep.#3

Merged
Metallion merged 1 commit intomasterfrom
fix-upstart
Apr 28, 2015
Merged

add a proper sleep.#3
Metallion merged 1 commit intomasterfrom
fix-upstart

Conversation

@hansode
Copy link

@hansode hansode commented Apr 24, 2015

Problem

When stud terminated forever, upstart respawn soon.

Apr 24 09:48:45 wwej15a0 init: stud main process (32053) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32055) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32057) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32059) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32061) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32063) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32065) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32067) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32069) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32071) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32073) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning
Apr 24 09:48:45 wwej15a0 init: stud main process (32075) terminated with status 1
Apr 24 09:48:45 wwej15a0 init: stud main process ended, respawning

When stud is unnecessary case, stud will not start forever.

Solution

Add a proper sleep time to script section.

@Metallion
Copy link

It's dirty but unfortunately necessary since stud doesn't wait on its children when exiting. :(

+1

Metallion added a commit that referenced this pull request Apr 28, 2015
@Metallion Metallion merged commit c06c8fd into master Apr 28, 2015
@Metallion Metallion deleted the fix-upstart branch April 28, 2015 04:44
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