[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
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
System(echo '/usr/sbin/asterisk -rx "restart when convenient" >&/dev/null' | at now + 1 minute)
More information about the asterisk-users