From owner-freebsd-questions Fri Mar 14 8: 9:48 2003 Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 0395B37B401 for ; Fri, 14 Mar 2003 08:09:47 -0800 (PST) Received: from mired.org (ip68-97-54-220.ok.ok.cox.net [68.97.54.220]) by mx1.FreeBSD.org (Postfix) with SMTP id BF79D43FBD for ; Fri, 14 Mar 2003 08:09:45 -0800 (PST) (envelope-from mwm-dated-1048090184.239b5f@mired.org) Received: (qmail 78930 invoked from network); 14 Mar 2003 16:09:44 -0000 Received: from localhost.mired.org (HELO guru.mired.org) (127.0.0.1) by localhost.mired.org with SMTP; 14 Mar 2003 16:09:44 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <15985.65224.87953.811583@guru.mired.org> Date: Fri, 14 Mar 2003 10:09:44 -0600 To: Cc: Subject: Re: init and process restart In-Reply-To: <4D7B558499107545BB45044C63822DDE01AF2A38@mvebe001.americas.nokia.com> References: <4D7B558499107545BB45044C63822DDE01AF2A38@mvebe001.americas.nokia.com> X-Mailer: VM 7.07 under 21.1 (patch 14) "Cuyahoga Valley" XEmacs Lucid X-face: "5Mnwy%?j>IIV\)A=):rjWL~NB2aH[}Yq8Z=u~vJ`"(,&SiLvbbz2W`; h9L,Yg`+vb1>RG% *h+%X^n0EZd>TM8_IB;a8F?(Fb"lw'IgCoyM.[Lg#r\ From: Mike Meyer X-Delivery-Agent: TMDA/0.71 (Hoop, Jr.) 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 In <4D7B558499107545BB45044C63822DDE01AF2A38@mvebe001.americas.nokia.com>, Vijay.Singh@nokia.com typed: > Hi. Is it possible to use init to restart some user critical processes if they die. Has any work been done in this area. Please CC me. Yes, it's possible to have init start a process at system boot time, and restart the process if it dies. The single paragraph that describes this in the init man page is: The init utility can also be used to keep arbitrary daemons running, automatically restarting them if they die. In this case, the first field in the ttys(5) file must not reference the path to a configured device node and will be passed to the daemon as the final argument on its com- mand line. This is similar to the facility offered in the AT&T System V UNIX /etc/inittab. http://www.mired.org/consulting.html Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-questions" in the body of the message