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

tzafrir at debian.org tzafrir at debian.org
Sun Apr 24 13:49:09 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 3b77b5e010d5912ef084e42143422ae57c35fd15
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