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.
crontab
0,20,40 * * * * /usr/sbin/asterisk -rx ‘module reload’
$ asterisk -vvvvrx 'module reload’
Asterisk 1.6.2.9-2+squeeze6, Copyright © 1999 - 2010 Digium, Inc. and others.
Created by Mark Spencer markster@digium.com
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
== Found
Executing last minute cleanups
Asterisk ending (0).
Thanks