process always running

2008-11-27 Thread Gian Paolo Buono
Hi,
there is a method in freebsd for  restart process whenever it terminates ? I
use in linux respawn in inittab...

Thanks ...bye
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: process always running

2008-11-27 Thread Anthony M. Rasat
there is a method in freebsd for  restart process whenever it terminates ? I
use in linux respawn in inittab...

I'm still a big fan of Daniel J. Bernstein's daemontools. Go grab it from 
http://cr.yp.to/daemontools.html and be sure to read instructions. Not exactly 
configure-make-install kinda thingy. I don't recall daemontools in FreeBSD 
ports though, maybe there is.

Oh almost forgot, just to save your not-itchy hair, daemontools require your 
application to be running on foreground. Find a way to do so but if you haven't 
found it, there is a tool to do so. Once again, read instructions thoroughly.

-- 

Regards,

Anthony M. Rasat
Manager - Technical, Network and Support Division
PT. Jawa Pos National Network
Graha Pena Jawa Pos Group Building, 5th floor
Jln. Raya Kebayoran Lama 12, Jakarta Barat 12210
Indonesia.-
Phone 02132185562
Phone 081574217035
Fax 02153651465
Web http://www.jpnn.com
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: process always running

2008-11-27 Thread Dominik Meister
Hi

Gian Paolo Buono [Thu, Nov 27, 2008 at 02:05:44PM +0100]:
 there is a method in freebsd for  restart process whenever it terminates ? I
 use in linux respawn in inittab...

One possibility that comes to mind is using daemontools [0]. Should be
in ports but there are probably easier ways to achieve this.

[0] http://cr.yp.to/daemontools.html

-- 
Dominik Meister
My public GnuPG key is available at http://www.meisternet.ch/gpg.txt


pgp73qfBc10qU.pgp
Description: PGP signature


Re: process always running

2008-11-27 Thread Jonathan McKeown
On Thursday 27 November 2008 15:46:58 Dominik Meister wrote:
 Hi

 Gian Paolo Buono [Thu, Nov 27, 2008 at 02:05:44PM +0100]:
  there is a method in freebsd for  restart process whenever it terminates
  ? I use in linux respawn in inittab...

 One possibility that comes to mind is using daemontools [0]. Should be
 in ports but there are probably easier ways to achieve this.

I've never tried it, but according to the manpage for init(8) you can get the 
same effect as a respawn entry in a sysV inittab by putting the command 
in /etc/ttys. Perhaps someone who's done it could comment?

Jonathan
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: process always running

2008-11-27 Thread Sebastian Tymków
Hi,

I use it and it works fine for me. I don't need any third party software to
run/restart process.
Recently I used daemontools for respawn process but it was uncomfortable to
install and configure for me.

Best regards,

Sebastian Tymkow

2008/11/27 Jonathan McKeown [EMAIL PROTECTED]

 On Thursday 27 November 2008 15:46:58 Dominik Meister wrote:
  Hi
 
  Gian Paolo Buono [Thu, Nov 27, 2008 at 02:05:44PM +0100]:
   there is a method in freebsd for  restart process whenever it
 terminates
   ? I use in linux respawn in inittab...
 
  One possibility that comes to mind is using daemontools [0]. Should be
  in ports but there are probably easier ways to achieve this.

 I've never tried it, but according to the manpage for init(8) you can get
 the
 same effect as a respawn entry in a sysV inittab by putting the command
 in /etc/ttys. Perhaps someone who's done it could comment?

 Jonathan
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]