Date: Sun, 5 Aug 2007 18:39:40 +0300 From: Andy Fawcett <andy@athame.co.uk> To: freebsd-ports@freebsd.org, dandee@hellteam.net Subject: Re: FW: FreeBSD Port: uptimed-0.3.7 Message-ID: <200708051839.41652.andy@athame.co.uk> In-Reply-To: <000501c7d75b$66b93cc0$6508280a@tocnet28.jspoj.czf> References: <000501c7d75b$66b93cc0$6508280a@tocnet28.jspoj.czf>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200708051839.41652.andy>