[Pkg-sympa-commits] [sympa] 23/30: Fix systemd service files and init script for Sympa 6.2

Emmanuel Bouthenot kolter at moszumanska.debian.org
Mon Sep 19 20:08:48 UTC 2016


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

kolter pushed a commit to branch master
in repository sympa.

commit dc22e57be620dae62673f6acfffd5a35e6bd6fa1
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Mon Sep 19 21:44:57 2016 +0200

    Fix systemd service files and init script for Sympa 6.2
---
 debian/sympa.init                       |  2 +-
 debian/sympa.sympa-archived.service     |  6 +++++-
 debian/sympa.sympa-bounced.service      |  6 +++++-
 debian/sympa.sympa-bulk.service         |  7 ++++++-
 debian/sympa.sympa-task_manager.service |  7 ++++++-
 debian/sympa.sympa.service              | 11 ++++++++---
 6 files changed, 31 insertions(+), 8 deletions(-)

diff --git a/debian/sympa.init b/debian/sympa.init
index c80416d..95b3e78 100644
--- a/debian/sympa.init
+++ b/debian/sympa.init
@@ -23,7 +23,7 @@ GROUP=sympa
 NAME="sympa"
 DESC="Sympa mailing list manager"
 
-DAEMONS="sympa task_manager bulk bounced archived"
+DAEMONS="sympa_msg task_manager bulk bounced archived"
 
 if [ -f /etc/default/sympa ]; then
     . /etc/default/sympa
diff --git a/debian/sympa.sympa-archived.service b/debian/sympa.sympa-archived.service
index 20a6511..eecdf4f 100644
--- a/debian/sympa.sympa-archived.service
+++ b/debian/sympa.sympa-archived.service
@@ -14,7 +14,11 @@ ExecStartPre=-/bin/chown -R sympa:sympa /run/sympa
 Type=forking
 ExecStart=/usr/lib/sympa/bin/archived.pl
 PIDFile=/run/sympa/archived.pid
-Restart=on-failure
+
+Restart=always
+RestartSec=15
+
+PrivateTmp=true
 
 [Install]
 WantedBy=multi-user.target
diff --git a/debian/sympa.sympa-bounced.service b/debian/sympa.sympa-bounced.service
index f9e9ebb..e816ea6 100644
--- a/debian/sympa.sympa-bounced.service
+++ b/debian/sympa.sympa-bounced.service
@@ -14,7 +14,11 @@ ExecStartPre=-/bin/chown -R sympa:sympa /run/sympa
 Type=forking
 ExecStart=/usr/lib/sympa/bin/bounced.pl
 PIDFile=/run/sympa/bounced.pid
-Restart=on-failure
+
+Restart=always
+RestartSec=15
+
+PrivateTmp=true
 
 [Install]
 WantedBy=multi-user.target
diff --git a/debian/sympa.sympa-bulk.service b/debian/sympa.sympa-bulk.service
index 57e431b..c704707 100644
--- a/debian/sympa.sympa-bulk.service
+++ b/debian/sympa.sympa-bulk.service
@@ -1,6 +1,7 @@
 [Unit]
 Description=SYMPA mailing list manager (bulk)
 PartOf=sympa.service
+Documentation=man:bulk(8)
 
 [Service]
 User=sympa
@@ -13,7 +14,11 @@ ExecStartPre=-/bin/chown -R sympa:sympa /run/sympa
 Type=forking
 ExecStart=/usr/lib/sympa/bin/bulk.pl
 PIDFile=/run/sympa/bulk.pid
-Restart=on-failure
+
+Restart=always
+RestartSec=15
+
+PrivateTmp=true
 
 [Install]
 WantedBy=multi-user.target
diff --git a/debian/sympa.sympa-task_manager.service b/debian/sympa.sympa-task_manager.service
index 1738067..cbdd6ef 100644
--- a/debian/sympa.sympa-task_manager.service
+++ b/debian/sympa.sympa-task_manager.service
@@ -1,6 +1,7 @@
 [Unit]
 Description=SYMPA mailing list manager (task_manager)
 PartOf=sympa.service
+Documentation=man:task_manager(8)
 
 [Service]
 User=sympa
@@ -13,7 +14,11 @@ ExecStartPre=-/bin/chown -R sympa:sympa /run/sympa
 Type=forking
 ExecStart=/usr/lib/sympa/bin/task_manager.pl
 PIDFile=/run/sympa/task_manager.pid
-Restart=on-failure
+
+Restart=always
+RestartSec=15
+
+PrivateTmp=true
 
 [Install]
 WantedBy=multi-user.target
diff --git a/debian/sympa.sympa.service b/debian/sympa.sympa.service
index 707bfd4..47448c9 100644
--- a/debian/sympa.sympa.service
+++ b/debian/sympa.sympa.service
@@ -1,6 +1,7 @@
 [Unit]
 Description=SYMPA mailing list manager
 Wants=sympa-bulk.service sympa-archived.service sympa-bounced.service sympa-task_manager.service
+Documentation=man:sympa_msg(8)
 
 [Service]
 User=sympa
@@ -11,9 +12,13 @@ ExecStartPre=-/bin/mkdir -p /run/sympa
 ExecStartPre=-/bin/chown -R sympa:sympa /run/sympa
 
 Type=forking
-ExecStart=/usr/lib/sympa/bin/sympa.pl
-PIDFile=/run/sympa/sympa.pid
-Restart=on-failure
+ExecStart=/usr/lib/sympa/bin/sympa_msg.pl
+PIDFile=/run/sympa/sympa_msg.pid
+
+Restart=always
+RestartSec=15
+
+PrivateTmp=true
 
 [Install]
 WantedBy=multi-user.target

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/collab-maint/sympa.git



More information about the Pkg-sympa-commits mailing list