From owner-freebsd-ports@FreeBSD.ORG Sun Aug 5 16:21:30 2007 Return-Path: Delivered-To: freebsd-ports@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 0FC3616A419 for ; Sun, 5 Aug 2007 16:21:30 +0000 (UTC) (envelope-from andy@athame.co.uk) Received: from hex.athame.co.uk (salama58.adsl.netsonic.fi [81.17.207.58]) by mx1.freebsd.org (Postfix) with ESMTP id C89AE13C442 for ; Sun, 5 Aug 2007 16:21:29 +0000 (UTC) (envelope-from andy@athame.co.uk) Received: from [192.168.10.8] by hex.athame.co.uk with esmtp (Exim 4.67 (FreeBSD)) (envelope-from ) id 1IHiAA-0003p8-Df; Sun, 05 Aug 2007 18:37:02 +0300 From: Andy Fawcett To: freebsd-ports@freebsd.org, dandee@hellteam.net Date: Sun, 5 Aug 2007 18:39:40 +0300 User-Agent: KMail/1.9.7 References: <000501c7d75b$66b93cc0$6508280a@tocnet28.jspoj.czf> In-Reply-To: <000501c7d75b$66b93cc0$6508280a@tocnet28.jspoj.czf> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Message-Id: <200708051839.41652.andy@athame.co.uk> Cc: Subject: Re: FW: FreeBSD Port: uptimed-0.3.7 X-BeenThere: freebsd-ports@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Porting software to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 05 Aug 2007 16:21:30 -0000 Two days is hardly "no response", especially when my baby daughter had a bi= g=20 day today. I'll look at your submission during this coming week. Please be patient. Andy On Sunday 05 August 2007 15:23:16 Daniel Dvo=C5=99=C3=A1k wrote: > I have no response, so I try to send to public. > > > > _____ > > From: Daniel Dvo=C5=99=C3=A1k [mailto:dandee@hellteam.net] > Sent: Friday, August 03, 2007 11:09 PM > To: 'andy@athame.co.uk' > Subject: FreeBSD Port: uptimed-0.3.7 > > > > Hi Andy, > > > > I ask you about updating uptimed to the last release 0.3.11. > > > > Radek P. is my friend and I show him what the startting script in fbsd > porttree is, he was surprised a little bit about older our 0.3.7 release. > > > > The main problem is with pid file and uptimed.sh script as whole. > > > > See this: > > > > # /etc2/rc.d/uptimed.sh stop > > # /etc2/rc.d/uptimed.sh start > > uptimeduptimed is already running. > > # /etc2/rc.d/uptimed.sh stop > > # ps aux | grep "uptimed" > > root 91399 0,0 0,8 1564 948 p0 R+ 10:04od 0:00,03 grep uptim= ed > > # /etc2/rc.d/uptimed.sh start > > uptimeduptimed is already running. > > # ps aux | grep "uptimed" > > root 91406 0,0 0,7 1548 872 p0 R+ 10:05od 0:00,02 grep uptim= ed > > > > I had to use =E2=80=9Ekillall uptimed=E2=80=9C to really stop it. > > > > This is our latest script: > > > > #!/bin/sh > > case "$1" in > > start) > > echo -n ' uptimed' > > /usr/local/sbin/uptimed > > ;; > > stop) > > ;; > > restart) > > ;; > > *) > > echo "Usage: ${0##*/}: { start | stop | restart }" 2>&1 > > exit 65 > > ;; > > esac > > > > > > And Radek has in his sources this much newer code with status. To be > perfect it should have rcvar option. > > > > http://hg.podgorny.cz/uptimed/file/ccbad14594ae/etc/rc.uptimed > > > > case "$1" in > 69 start) > 70 start > 71 ;; > 72 stop) > 73 stop > 74 ;; > 75 restart) > 76 stop > 77 start > 78 ;; > 79 createbootid) > 80 createbootid > 81 ;; > 82 status) > 83 showstatus > 84 ;; > 85 *) > 86 echo $"Usage: $0 {start|stop|restart|createbootid|status}" > 87 RETVAL=3D1 > 88esac > 89exit $RETVAL > > > > > > I think this code above is good point to start and adjust our modern > uptimed startting script with rc rules for our needs. > > > > I ask you more than I could, becuse my contribution is almost none, but at > least new modern startting script with whole status and rcvar stuff under > new rc rules would be great. > > > > Perhaps I do not bother you more than necessary. > > > > Thanks > > > > Bye > > > > Dan > > _______________________________________________ > freebsd-ports@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-ports > To unsubscribe, send any mail to "freebsd-ports-unsubscribe@freebsd.org" =2D-=20 Andy Fawcett | andy@athame.co.uk | tap@kde.org "In an open world without walls and fences, | tap@lspace.org we wouldn't need Windows and Gates." -- anon | tap@fruitsalad.org