Date: Wed, 25 Aug 2004 14:49:07 +0100 From: "Richard P. Williamson" <richard.williamson@u4eatech.com> To: freebsd-questions@freebsd.org Subject: Re: using ttys to restart a process Message-ID: <6.1.2.0.2.20040825144401.026fee78@cygnus> In-Reply-To: <6.1.2.0.2.20040817153240.027486b8@cygnus> References: <6.1.2.0.2.20040817153240.027486b8@cygnus>
next in thread | previous in thread | raw e-mail | index | archive | help
Hello, According to ttys(5) and init(8), init will restart a process if it is found in ttys. Accordingly, I've added these two lines to my ttys file: ttyv0 "/bin/stp-server" unknown on ttyv1 "/manager/listener 4553" unknown on The first line appears to result in what I'm looking for, ie the stp-server runs, and if I kill it, the init process restarts it. The second line, however, gives me this message: Aug 25 14:33:38 FFProRDP init: getty repeating too quickly on \ port /dev/ttyv1, sleeping 30 secs What I'm looking for is an idea how to debug why the listener app is choking. /var/log/messages just repeats the 'init: getty' line. TIA, rip At 15:41 17/08/2004. Richard P. Williamson had this to say: >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 > >_______________________________________________ >freebsd-questions@freebsd.org mailing list >http://lists.freebsd.org/mailman/listinfo/freebsd-questions >To unsubscribe, send any mail to "freebsd-questions-unsubscribe@freebsd.org"
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?6.1.2.0.2.20040825144401.026fee78>