From: Peter Hickman <peterhickman386@googlemail.com>
Cc: "<supervision@list.skarnet.org>" <supervision@list.skarnet.org>
Subject: Re: Suddenly sv does not start, gives a timeout
Date: Wed, 22 May 2013 14:32:14 +0100 [thread overview]
Message-ID: <CALxYQy7Zh9UV0HVLNaeikVKj1ojaYvT9-7Ut7iLkjACb40uL4g@mail.gmail.com> (raw)
In-Reply-To: <1369217804.2313.20.camel@lenny.robinbowes.com>
[-- Attachment #1: Type: text/plain, Size: 1653 bytes --]
Well this is what we have. Firstly we manually started it so lets kill it:
$ ps ax | grep scorecard
731 ? S 0:11 runsv scorecard_cricket_scores_importer
2980 ? Sl 0:34 services/scorecard_cricket_scores_importer.rb
16599 pts/0 S+ 0:00 grep scorecard
$ kill -9 2980
$ ps ax | grep scorecard
731 ? S 0:11 runsv scorecard_cricket_scores_importer
16671 pts/0 S+ 0:00 grep scorecard
The process has gone and will not be restarted no matter how long you wait.
So we try and start it with sv:
$ sv start ./service/scorecard_cricket_scores_importer/
timeout: down: ./service/scorecard_cricket_scores_importer/: 1s, normally
up, want up
$ ps ax | grep scorecard
731 ? S 0:11 runsv scorecard_cricket_scores_importer
16868 pts/0 S+ 0:00 grep scorecard
Still not started. So we try it manually:
$ ./service/scorecard_cricket_scores_importer/run &
[1] 16929
$ ps ax | grep scorecard
731 ? S 0:12 runsv scorecard_cricket_scores_importer
16929 pts/0 Sl 0:10 services/scorecard_cricket_scores_importer.rb
18896 pts/0 R+ 0:00 grep scorecard
$
And it keeps running without any problems for as long as you let it
There are no errors in the logs and nothing reported in:
runsvdir -P /etc/service log:
..................................................................................................................................................................................................................................................................
Is there some other runit log that I should look into?
next prev parent reply other threads:[~2013-05-22 13:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 9:30 Peter Hickman
2013-05-22 10:16 ` Robin Bowes
2013-05-22 13:32 ` Peter Hickman [this message]
2013-05-22 13:40 ` Charlie Brady
2013-05-22 14:22 ` Peter Hickman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=CALxYQy7Zh9UV0HVLNaeikVKj1ojaYvT9-7Ut7iLkjACb40uL4g@mail.gmail.com \
--to=peterhickman386@googlemail.com \
--cc=supervision@list.skarnet.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).