From owner-freebsd-questions Wed Feb 13 4:58:17 2002 Delivered-To: freebsd-questions@freebsd.org Received: from mailsrv.otenet.gr (mailsrv.otenet.gr [195.170.0.5]) by hub.freebsd.org (Postfix) with ESMTP id 2BFFE37B405 for ; Wed, 13 Feb 2002 04:58:12 -0800 (PST) Received: from hades.hell.gr (patr530-a236.otenet.gr [212.205.215.236]) by mailsrv.otenet.gr (8.12.2/8.12.2) with ESMTP id g1DCvuO9024890; Wed, 13 Feb 2002 14:58:10 +0200 (EET) Received: (from charon@localhost) by hades.hell.gr (8.11.6/8.11.6) id g1DBS6k21609; Wed, 13 Feb 2002 13:28:06 +0200 (EET) (envelope-from keramida@freebsd.org) Date: Wed, 13 Feb 2002 13:28:06 +0200 From: Giorgos Keramidas To: Posthuman Cc: freebsd-questions@freebsd.org Subject: Re: ident2 question. Message-ID: <20020213112806.GD18592@hades.hell.gr> References: <004001c1b461$27603b50$0abf7842@posthuman> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <004001c1b461$27603b50$0abf7842@posthuman> User-Agent: Mutt/1.3.25i Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On 2002-02-12 23:36, Posthuman wrote: > > I installed ident2, but am having a problem. It won't load on start up. > I have to go to /usr/local/sbin/ every time on boot and start it > manually. Any suggestions how can I make it start up automatically on > boot? You have to roll a script of your own in /usr/local/etc/rc.d that will fire up the ident2 server at system boot (and kill it when system goes down). It has to understand 'start' and 'stop' arguments, so it could be something as simple as: #!/bin/sh case $1 in start) /usr/local/sbin/ident2 echo -n ' ident2' ;; stop) killall -15 ident2 >/dev/null 2>&1 sleep 1 killall -9 ident2 >/dev/null 2>&1 echo -n ' ident2' esac Save this to a file called ident2.sh in /usr/local/etc/rc.d and make it executable. All the executable *.sh files of this directory will get picked and run at startup and shutdown time, by the system scripts. Giorgos Keramidas FreeBSD Documentation Project keramida@{freebsd.org,ceid.upatras.gr} http://www.FreeBSD.org/docproj/ To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message