Hi Guys I am trying to setup a cronjob to reload the configuration files that are frequently changed on the server.
I can reload the configuration files using asterisk -rx reload, however when I setup the cronjob the comaand doesn’t work.
0,20,40 * * * * /usr/sbin/asterisk -rx ‘module reload’
$ asterisk -vvvvrx 'module reload’
Asterisk 126.96.36.199-2+squeeze6, Copyright © 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer firstname.lastname@example.org
Asterisk comes with ABSOLUTELY NO WARRANTY; type ‘core show warranty’ for details.
This is free software, with components licensed under the GNU General Public
License version 2 and other licenses; you are welcome to redistribute it under
certain conditions. Type ‘core show license’ for details.
== Parsing ‘/etc/asterisk/asterisk.conf’: == Found
== Parsing ‘/etc/asterisk/extconfig.conf’: Parsing /etc/asterisk/extconfig.conf
Executing last minute cleanups
Asterisk ending (0).