-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviewboard.asterisk.org/r/3062/#review10847
-----------------------------------------------------------



/trunk/contrib/asterisk.service
<https://reviewboard.asterisk.org/r/3062/#comment20440>

    Even setting this to 1 seems pointless (the default is 100ms). If you want 
to test it, you can use the following wrapper to asterisk:
    
    #!/bin/sh
    
    # if you put here 'sleep 1' instead of 'sleep 2', systemd will only restart
    # asterisk twice or so and then give up.
    (sleep 2; killall -9 asterisk) &
    
    exec /usr/sbin/asterisk "$@"
    


- Tzafrir Cohen


On Feb. 10, 2014, 5:16 p.m., Tzafrir Cohen wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviewboard.asterisk.org/r/3062/
> -----------------------------------------------------------
> 
> (Updated Feb. 10, 2014, 5:16 p.m.)
> 
> 
> Review request for Asterisk Developers.
> 
> 
> Repository: Asterisk
> 
> 
> Description
> -------
> 
> Installs a systemd service file for Asterisk.
> 
> Systeemd is the new "one daemon to rule them all" for Linux: 
> http://www.freedesktop.org/wiki/Software/systemd/
> On systems without systemd this should be just a harmless (though maybe 
> annoying) text file.
> 
> This is aimed at replacing safe_asterisk with a more reliable main loop. It 
> almost does that. Is still fails to handle failures, as it seems that 
> systemd's ExecPostStop command does not get the exist status of the stopped 
> command.
> 
> 
> Diffs
> -----
> 
>   /trunk/contrib/scripts/live_ast 407855 
>   /trunk/contrib/scripts/asterisk_cleanup PRE-CREATION 
>   /trunk/contrib/asterisk.service PRE-CREATION 
>   /trunk/Makefile 407855 
> 
> Diff: https://reviewboard.asterisk.org/r/3062/diff/
> 
> 
> Testing
> -------
> 
> 
> Thanks,
> 
> Tzafrir Cohen
> 
>

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

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

Reply via email to