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: Recommended steps for upgrading?
Date: Sat, 28 Jun 2008 15:11:40 -0400	[thread overview]
Message-ID: <87y74pwf0z.fsf@asfast.com> (raw)

I've been using runit for a while, and whenever I upgrade to a new
version, I want to shut down everything and then restart, so that I can
make use of the the newest runsvdir and runsv binaries.

However, when I have done this, I have found that I often find problems
with the existing lock files and sockets that runsv uses.  Therefore,
I've come up with a procedure for doing a complete restart that deletes
these files as part of the process.

My procedure seems like overkill, however, and I'm hoping that there is
some lack of understanding that I have which, when corrected, will
result in my knowing how to do this in a more straightforward manner,
and without any manual file deletions.

Here are my steps. Can any of you could suggest improvements? Thanks in
advance.

  # cd /service
  # for i in *
  > do
  > sv stop $i
  > done

  # 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 

  # 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-28 19:11 UTC|newest]

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

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=87y74pwf0z.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).