From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/984 Path: news.gmane.org!not-for-mail From: "Frans Haarman" Newsgroups: gmane.comp.sysutils.supervision.general Subject: exceline & supervision Date: Wed, 11 Jan 2006 11:10:04 +0100 Message-ID: <2DC959620A73E842969792F5B47FCA0102107701@dg-exch1.giessen.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="----_=_NextPart_001_01C61697.30F8A86E" Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1136974486 12992 80.91.229.2 (11 Jan 2006 10:14:46 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2006 10:14:46 +0000 (UTC) Original-X-From: supervision-return-1220-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jan 11 11:14:41 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1Ewczu-0006aH-PN for gcsg-supervision@gmane.org; Wed, 11 Jan 2006 11:14:30 +0100 Original-Received: (qmail 2809 invoked by uid 76); 11 Jan 2006 10:14:51 -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 2788 invoked from network); 11 Jan 2006 10:13:10 -0000 content-class: urn:content-classes:message X-MimeOLE: Produced By Microsoft MimeOLE V6.00.3790.326 X-MS-Has-Attach: Importance: normal Priority: normal X-MS-TNEF-Correlator: Thread-Topic: exceline & supervision Thread-Index: AcYWlzDzDcpdrIMDQwKreQMs/F/Yjw== Original-To: X-OriginalArrivalTime: 11 Jan 2006 10:10:04.0753 (UTC) FILETIME=[312CCC10:01C61697] Xref: news.gmane.org gmane.comp.sysutils.supervision.general:984 Archived-At: This is a multi-part message in MIME format. ------_=_NextPart_001_01C61697.30F8A86E Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Hi, I am using exceline to build run scripts for my services. It works great, the only problem is other people dont understand it ;) I am concidering a 'standard' run script. #!/command/excelineb fdmove -c 2 1 foreground { ./bin/precmd } foreground { ./bin/runcmd } foreground { ./bin/postcmd } echo 'service has ended' In my understanding this will allow others to use shell scripts, but it wont leave a shell hanging around. Can anyone see problems with this setup ? Regards, Frans Frans Haarman De Giessen Automatisering B.V. Technische Dienst Tel: (0184) 67 53 75 Fax: (0184) 61 12 46 E-mail: helpdesk@giessen.nl Internet: www.giessen.nl Algemeen Tel: (0184) 67 54 00 D u i d e l i j k e t a a l ! ------_=_NextPart_001_01C61697.30F8A86E Content-Type: text/html; charset="us-ascii" Content-Transfer-Encoding: quoted-printable
Hi,
 
I am = using exceline=20 to build run scripts for my services. It works great, the only=20 problem
is = other people dont=20 understand it ;)
 
I am = concidering a=20 'standard' run script.
 
#!/command/excelineb
 
fdmove = -c 2=20 1
foreground {=20 ./bin/precmd }
foreground {=20 ./bin/runcmd }
foreground {=20 ./bin/postcmd }
echo = 'service has=20 ended'
 
In my = understanding=20 this will allow others to use shell scripts, but it wont leave a shell=20 hanging
around.
 
Can = anyone see=20 problems with this setup ?
 
 
Regards,
Frans
 
Frans Haarman
De Giessen Automatisering = B.V.

Technische Dienst
Tel: (0184) 67 53 = 75
Fax: (0184) 61 12 = 46
Internet: www.giessen.nl

Algemeen
Tel: (0184) 67 54 00

D u i d e l i j k e   t a a l !
------_=_NextPart_001_01C61697.30F8A86E-- From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.sysutils.supervision.general/985 Path: news.gmane.org!not-for-mail From: Laurent Bercot Newsgroups: gmane.comp.sysutils.supervision.general Subject: Re: exceline & supervision Date: Wed, 11 Jan 2006 16:39:30 +0100 Message-ID: <20060111153930.GA5817@skarnet.org> References: <2DC959620A73E842969792F5B47FCA0102107701@dg-exch1.giessen.nl> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1136993992 17695 80.91.229.2 (11 Jan 2006 15:39:52 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 11 Jan 2006 15:39:52 +0000 (UTC) Original-X-From: supervision-return-1221-gcsg-supervision=m.gmane.org@list.skarnet.org Wed Jan 11 16:39:46 2006 Return-path: Envelope-to: gcsg-supervision@gmane.org Original-Received: from antah.skarnet.org ([212.85.147.14]) by ciao.gmane.org with smtp (Exim 4.43) id 1Ewi45-0003Ry-LH for gcsg-supervision@gmane.org; Wed, 11 Jan 2006 16:39:09 +0100 Original-Received: (qmail 6147 invoked by uid 76); 11 Jan 2006 15:39:30 -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 6141 invoked by uid 1000); 11 Jan 2006 15:39:30 -0000 Mail-Followup-To: supervision@list.skarnet.org Original-To: supervision@list.skarnet.org Content-Disposition: inline In-Reply-To: <2DC959620A73E842969792F5B47FCA0102107701@dg-exch1.giessen.nl> User-Agent: Mutt/1.4i Xref: news.gmane.org gmane.comp.sysutils.supervision.general:985 Archived-At: > #!/command/excelineb In a run script, you could use: #!/command/execlineb -P Your environment will be cleaner. > foreground { ./bin/runcmd } > Can anyone see problems with this setup ? You won't have any execline-specific problems. But instead of having a /bin/sh hanging around, you'll have a /command/foreground hanging around. ... supervise foo \_ foreground \_ foo instead of ... supervise foo \_ foo This means that you won't be able to use svc to send signals to your service. It's better to forget post-cmd entirely, and have your run script exec into your service. If you really need a post-cmd, switch from daemontools to runit, and use runsv's "finish script" feature. -- Laurent