Hello,<br><br>I would to create a custom file whenever a "core stop now" command is typed through Asterisk console.<br>(If this file is present, it would mean admin has choosen to stop Asterisk and it shouldn't be tried to restart Asterisk automatically).<br>
<br>Obviously, when such "core stop now" command is typed, "/etc/init.d/asterisk stop" is not launched so I can't use this single /etc/init.d/asterisk as a way to tell what should or shouldn't be done when Asterisk is starting or stopping.<br>
I can't see either in "man asterisk" any option with which I can specify an action to launch when asterisk stops.<br><br>Any idea or suggestion ?<br><br>Regards<br><br>