On Fri, Feb 17, 2017 at 04:38:47PM +0100, Olivier wrote:

> 3. For systemd envs where /etc/init.d files are not used anymore, what do
> you recommend ?

Even if /etc/init.d/ files are still used for other services,
asterisk may have a unit file in /etc/systemd/system/

[Unit]
Description=Asterisk
.....

[Service]
Restart=on-failure
RestartSec=15s
ExecStopPost=-/usr/local/bin/send-some-mail
.....



-- 
Stefan Tichy  ( asterisk3 at pi4tel dot de )

-- 
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --

Check out the new Asterisk community forum at: https://community.asterisk.org/

New to Asterisk? Start here:
      https://wiki.asterisk.org/wiki/display/AST/Getting+Started

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users

Reply via email to