From owner-freebsd-questions Thu Mar 22 10: 3: 8 2001 Delivered-To: freebsd-questions@freebsd.org Received: from gekko.i-clue.de (server.ms-agentur.de [62.153.134.194]) by hub.freebsd.org (Postfix) with ESMTP id A0E6D37B71C for ; Thu, 22 Mar 2001 10:03:03 -0800 (PST) (envelope-from so@server.i-clue.de) Received: from i-clue.de (automatix.i-clue.de [192.168.0.112]) by gekko.i-clue.de (8.9.3/8.9.3/SuSE Linux 8.9.3-0.1) with ESMTP id UAA22898; Thu, 22 Mar 2001 20:10:01 +0100 Message-ID: <3ABA3EA5.53DD4E24@i-clue.de> Date: Thu, 22 Mar 2001 19:04:21 +0100 From: Christoph Sold Reply-To: so@server.i-clue.de X-Mailer: Mozilla 4.75 [de] (WinNT; U) X-Accept-Language: de MIME-Version: 1.0 To: Marcos Helbert de Almeida Fontana Cc: freebsd-questions@FreeBSD.ORG Subject: Re: About RINETD.. References: <3ABA1C61.AD0FE9C7@mail.ufop.br> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Marcos Helbert de Almeida Fontana schrieb: > > I have installed the rinetd 0.61 and it work perfectly, but it don't > start > automaticaly. > > /etc/rc.local: > echo " rinetd " > /usr/local/sbin/rinetd > > But when I run it manualy (# /usr/local/sbin/rinetd) all right. Anybody > know why? Try ------ #!/bin/sh # # Start rinetd automagically at startup # rinetd=/usr/local/sbin/rinetd pidfile=/var/run/rinetd.pid case "$1" in start) if [ -x $rinetd ]; then echo -n " rinetd" $rinetd fi ;; stop) if [ -f $pidfile ]; then kill `cat $pidfile` echo -n ' rinetd' rm $pidfile else echo ' rinetd: not running' fi ;; reload) if [ -f $pidfile ]; then kill -HUP `cat $pidfile` echo ' rinetd restarted' else if [ -x $rinetd ]; then echo " rinetd started" $rinetd else echo " rinetd not found" fi ;; *) echo "Usage: `basename $0` {start|stop|reload}" >&2 exit 64 ;; esac exit 0 ------ Anybody feels like send-pr this one as a patch? HTH -Christoph Sold To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message