[Pkg-voip-commits] [asterisk] 03/03: systemd: only restart on failure

tzafrir at debian.org tzafrir at debian.org
Sun Apr 24 14:22:45 UTC 2016


This is an automated email from the git hooks/post-receive script.

tzafrir pushed a commit to branch master
in repository asterisk.

commit 580a550e4c252dde07dd1fec28183dce472e9cae
Author: Tzafrir Cohen <tzafrir at debian.org>
Date:   Sun Apr 24 16:46:17 2016 +0300

    systemd: only restart on failure
    
    Restart=on-failure. Otherwise ('always'), asterisk -rx 'core stop now'
    yields a restart.
---
 debian/patches/systemd.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/debian/patches/systemd.patch b/debian/patches/systemd.patch
index feed585..f6e03c5 100644
--- a/debian/patches/systemd.patch
+++ b/debian/patches/systemd.patch
@@ -91,7 +91,7 @@ Last-Update: 2016-04-02
 +[Service]
 +ExecStart=__ASTERISK_SBIN_DIR__/asterisk -g -f -U asterisk
 +ExecReload=__ASTERISK_SBIN_DIR__/asterisk -rx 'core reload'
-+Restart=always
++Restart=on-failure
 +RestartSec=1
 +WorkingDirectory=__ASTERISK_VARLIB_DIR__
 +

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/asterisk.git



More information about the Pkg-voip-commits mailing list