From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/1886 Path: news.gmane.org!not-for-mail From: Lloyd Zusman Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: Recommended steps for upgrading? Date: Mon, 30 Jun 2008 06:05:25 -0400 Organization: Take a hippopotamus to lunch today. Message-ID: <87prpzs0ey.fsf@asfast.com> References: <87y74pwf0z.fsf@asfast.com> <87lk0pweea.fsf@asfast.com> <3036.56146065823$1214815815@news.gmane.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1214820459 14535 80.91.229.12 (30 Jun 2008 10:07:39 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 30 Jun 2008 10:07:39 +0000 (UTC) To: supervision@list.skarnet.org Original-X-From: supervision-return-2121-gcsg-supervision=m.gmane.org@list.skarnet.org Mon Jun 30 12:08:24 2008 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by lo.gmane.org with smtp (Exim 4.50) id 1KDGHF-0000Lj-L4 for gcsg-supervision@gmane.org; Mon, 30 Jun 2008 12:06:29 +0200 Original-Received: (qmail 31814 invoked by uid 76); 30 Jun 2008 10:05:59 -0000 Mailing-List: contact supervision-help@list.skarnet.org; run by ezmlm List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Archive: Original-Received: (qmail 31804 invoked from network); 30 Jun 2008 10:05:59 -0000 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 62 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 209.59.210.144 User-Agent: Gnus/5.110011 (No Gnus v0.11) Emacs/21.4 (gnu/linux) Cancel-Lock: sha1:EBBQEBDZ/4rccbs6dZuC0Htoxvo= Cache-Post-Path: purity-of-essence.net!unknown@216.27.138.10 X-Cache: nntpcache 3.0.2 (see http://www.nntpcache.com/) Original-Sender: news Xref: news.gmane.org gmane.comp.sysutils.supervision.general:1886 Archived-At: "Radek Podgorny" writes: >> Lloyd Zusman 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.