Hello,<br><br>I would to create a custom file whenever a &quot;core stop now&quot; command is typed through Asterisk console.<br>(If this file is present, it would mean admin has choosen to stop Asterisk and it shouldn&#39;t be tried to restart Asterisk automatically).<br>
<br>Obviously, when such &quot;core stop now&quot; command is typed, &quot;/etc/init.d/asterisk stop&quot; is not launched so I can&#39;t use this single /etc/init.d/asterisk as a way to tell what should or shouldn&#39;t be done when Asterisk is starting or stopping.<br>
I can&#39;t see either in &quot;man asterisk&quot; 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>