From owner-freebsd-questions Fri May 4 3:11:57 2001 Delivered-To: freebsd-questions@freebsd.org Received: from smtp013.mail.yahoo.com (smtp013.mail.yahoo.com [216.136.173.57]) by hub.freebsd.org (Postfix) with SMTP id 331D537B423 for ; Fri, 4 May 2001 03:11:54 -0700 (PDT) (envelope-from educatee2001@yahoo.com) Received: from co3018900-a.belrs1.nsw.optushome.com.au (HELO co3018900a) (203.164.78.30) by smtp.mail.vip.sc5.yahoo.com with SMTP; 4 May 2001 10:11:53 -0000 X-Apparently-From: Message-ID: <000701c0d482$e2c7b630$0100c8c8@co3018900a> From: "Educatee" To: "FreeBSD questions" Subject: How to make a script recognized "stop" Date: Fri, 4 May 2001 20:13:36 +1000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook Express 5.50.4133.2400 X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4133.2400 Sender: owner-freebsd-questions@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG I have put a few line to run http-gw in a script file http-gw.sh: ------------------- #!/bin/sh /usr/local/libexec/http-gw -daemon 3210 echo -n 'http-gw started ok' ------------------- How could I make it recognized the stop signal. As everytime when I reboot my machine using shutdown -r now I was prompt that this script does not recognized the stop and was recommended to do so. Can you please help me? Thanks. By the way, I am very new to FreeBSD and will like to learn how to write script. Can you please recommend some URL or books. Thanks. _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message