From owner-freebsd-questions@FreeBSD.ORG Tue Aug 17 14:38:01 2004 Return-Path: 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 E139C16A4CE for ; Tue, 17 Aug 2004 14:38:01 +0000 (GMT) Received: from mail.u4eatech.com (blackhole.u4eatech.com [195.188.241.2]) by mx1.FreeBSD.org (Postfix) with ESMTP id 0A3EF43D3F for ; Tue, 17 Aug 2004 14:37:57 +0000 (GMT) (envelope-from richard.williamson@u4eatech.com) Received: by mail.u4eatech.com (Postfix, from userid 503) id E425A36014B; Tue, 17 Aug 2004 15:37:55 +0100 (BST) Received: from apus.u4eatech.com (apus.degree2.com [172.30.40.129]) (using TLSv1 with cipher DES-CBC3-SHA (168/168 bits)) (No client certificate requested) by mail.u4eatech.com (Postfix) with ESMTP id 721CC360148 for ; Tue, 17 Aug 2004 15:37:52 +0100 (BST) Message-Id: <6.1.2.0.2.20040817153240.027486b8@cygnus> X-Sender: richard@cygnus X-Mailer: QUALCOMM Windows Eudora Version 6.1.2.0 Date: Tue, 17 Aug 2004 15:41:40 +0100 To: freebsd-questions@freebsd.org From: "Richard P. Williamson" Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" X-Spam-Checker-Version: SpamAssassin 2.64 (2004-01-11) on mail X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=ham version=2.64 Subject: using ttys to restart a process X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 17 Aug 2004 14:38:02 -0000 Hello, 4.10-RELEASE According to ttys(5) and init(8), init will restart a process if it is found in ttys. I can not find, however, an example syntax for doing just that. Say I have a process called /usr/bin/sleeploop # is this how it works? sleeper "/usr/bin/sleeploop -q 3000" none on insecure ? Then, if I killall -s HUP sleeploop, it should 'magically reappear, as if by magic', right? Loath to have a go on this on the running system, on the off chance that I end up by breaking the boot sequence. TIA, rip