[Asterisk-Users] Re: How to restart * thru phone "when convenient"

Philipp von Klitzing klitzing at pool.informatik.rwth-aachen.de
Wed Dec 3 14:16:30 MST 2003


Hi!

for the record:

> >> Put an & behind the line?
> >
> >It does help to get a proper hang up for the client, but there is no 
> >restart initiated at all... looks like now the system calls gets 
> >cancelled due to the fact that the client is gone.  
> >
> Ah. Then put a 'nohup' in front of it:
> 
> System(nohup /usr/sbin/asterisk -rx "restart when convenient" >&/dev/null &)
> 
> Should do it.

This works ok, but I tested it twice, and once * stopped but did not 
restart (could have other reasons, though). Thus I prefer the method 
below:

System(echo '/usr/sbin/asterisk -rx "restart when convenient" >&/dev/null' | at now + 1 minute)

Thanks guys!
Philipp





More information about the asterisk-users mailing list