supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
From: Lloyd Zusman <ljz@asfast.com>
To: supervision@list.skarnet.org
Subject: Re: Recommended steps for upgrading?
Date: Mon, 30 Jun 2008 06:05:25 -0400	[thread overview]
Message-ID: <87prpzs0ey.fsf@asfast.com> (raw)
In-Reply-To: <3036.56146065823$1214815815@news.gmane.org>

"Radek Podgorny" <radek@podgorny.cz> writes:

>> Lloyd Zusman <ljz@asfast.com> writes:
>>
>>> [ ... ]
>>>
>>> Here are my steps. Can any of you could suggest improvements? Thanks in
>>> advance.
>>
>> I'm sorry for responding to my own message, but I left a step out of my
>> procedure. Here's the corrected version:
>>
>>   # cd /service
>>   # for i in *
>>   > do
>>   > sv stop $i
>>   > done
>
> "sv st /service/*" works for me so "sv stop" should work, too IMHO...

Thanks. I'll do "sv st{op} /service/*" next time.

If you folks agree that there isn't any way to avoid the manual kills of
the runsv and svlogd processes and the manual removals of the sockets
and the lock files, what do all of you think about having this
documented somewhere in the "upgrading from previous versions" page
(http://smarden.org/runit/upgrade.html)?  I'd be happy to submit an
attempt at this documentation.

I've gotten bit more than once with this during upgrades, where the
runit-based processes wouldn't properly restart, and I wouldn't doubt
that others might have encountered similar difficulties.


>>   # vi /etc/inittab   # (I'm using sysvinit and inittab)
>>   ... comment out this line, save the file, and then exit from vi:
>>   SV:123456:respawn:/sbin/runsvdir-start
>>
>>   # init q
>>
>>   # pkill -f runsv
>>   # pkill -f svlogd  # (this is the step I left out)
>>
>>   # cd /etc/sv
>>   # find . -name ok | xargs rm
>>   # find . -name lock | xargs rm
>>   # find . -name control | xargs rm
>>
>>   Now, do the complete runit upgrade.
>>
>>   Then ...
>>
>>   # vi /etc/inittab
>>   ... un-comment the line that I commented out above,
>>   ... save the file, and then exit from vi
>>
>>   # init q

-- 
 Lloyd Zusman
 ljz@asfast.com
 God bless you.



      reply	other threads:[~2008-06-30 10:05 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-06-28 19:11 Lloyd Zusman
2008-06-28 19:25 ` Lloyd Zusman
2008-06-30  8:49   ` Radek Podgorny
2008-06-30 10:05     ` Lloyd Zusman [this message]

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=87prpzs0ey.fsf@asfast.com \
    --to=ljz@asfast.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).