|
From: | Jan Dreyer |
Subject: | Re: [Sks-devel] funny one in /etc/init.d/sks |
Date: | Wed, 25 Aug 2004 21:54:28 +0200 |
-----BEGIN PGP SIGNED MESSAGE----- Hi, Am 25.08.2004 um 21:33 schrieb Thomas Sjögren:
On Wed, Aug 25, 2004 at 09:16:35PM +0200, Jan Dreyer wrote:I don't think so: - -- snipp -- while [ "`pidof sks`" ]; do sleep 10; done - -- snapp -- is an infinit loop if sks won't stop.... but sometimes reality comes and bites you. I said it was ugly and its on a wiki so feel free to improve it.
Yes, but the discussion was to prevent the infinit loop.I changed the script a little, so now it should do what we want. It's still ugly though ;-) Should run with sh=bash (that is the case in most (all?) Linuxes) and installed shellutils (uses expr).
Greetings Jan Dreyer- -- ZIT (Zentrum IT-Dienste) +-----------+
| USE PGP! |\ O---m /| Let the SUN shine in your heart ;-) | (key via server |/`-------'\| - -> zustaendig fuer: Unix-Server, CA | or on request) +-----------+ -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (Darwin) iQCVAwUBQSzudGdIcsNB7AJxAQG5fgP+OO0PvbRti4t6m6NLOOTIdsi37vqqNQGA Kmo6NQ6GDEbuSe80p/6pkFbxgCxn4cjlgZZIA7/JgonAIFLjQEWvBZBAYy997uPO SZbp51LSRX8947q9IuLAAVDHaRSwAZqLftolhmMeIdp99c6ONnPadnnR2EJZTcs8 OEaQEuHf6SE= =FsfF -----END PGP SIGNATURE-----
[Prev in Thread] | Current Thread | [Next in Thread] |