[Pkg-sympa-commits] [sympa] 21/28: Adding systemd unit files

Emmanuel Bouthenot kolter at moszumanska.debian.org
Wed Jun 11 21:53:04 UTC 2014


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

kolter pushed a commit to branch master
in repository sympa.

commit 74f1686c5ae33bb27f4f1fc2b9ff9170f3025f17
Author: Emmanuel Bouthenot <kolter at openics.org>
Date:   Tue Jun 10 00:06:29 2014 +0200

    Adding systemd unit files
---
 debian/rules                            |  7 +++++++
 debian/sympa.sympa-archived.service     | 19 +++++++++++++++++++
 debian/sympa.sympa-bounced.service      | 19 +++++++++++++++++++
 debian/sympa.sympa-bulk.service         | 19 +++++++++++++++++++
 debian/sympa.sympa-task_manager.service | 19 +++++++++++++++++++
 debian/sympa.sympa.service              | 19 +++++++++++++++++++
 6 files changed, 102 insertions(+)

diff --git a/debian/rules b/debian/rules
index b1931aa..08c3915 100755
--- a/debian/rules
+++ b/debian/rules
@@ -127,6 +127,13 @@ clean::
 	# Remove generated sympa_wizard manpage
 	rm -f debian/sympa_wizard.8
 
+binary-install/sympa::
+	dh_installinit --noscripts --name=sympa
+	dh_installinit --noscripts --name=sympa-bounced
+	dh_installinit --noscripts --name=sympa-archived
+	dh_installinit --noscripts --name=sympa-bulk
+	dh_installinit --noscripts --name=sympa-task_manager
+
 # Remove unnecessary files
 binary-post-install/sympa::
 	rm -f "$(DEB_DESTDIR)"/usr/share/doc/$(cdbs_curpkg)/examples/sample/*.conf \
diff --git a/debian/sympa.sympa-archived.service b/debian/sympa.sympa-archived.service
new file mode 100644
index 0000000..c5123d2
--- /dev/null
+++ b/debian/sympa.sympa-archived.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=SYMPA mailing list manager (archived)
+PartOf=sympa.service
+
+[Service]
+User=sympa
+Group=sympa
+
+PermissionsStartOnly=true
+ExecStartPre=-/bin/mkdir -p /run/sympa
+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
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/sympa.sympa-bounced.service b/debian/sympa.sympa-bounced.service
new file mode 100644
index 0000000..45c720b
--- /dev/null
+++ b/debian/sympa.sympa-bounced.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=SYMPA mailing list manager (bounced)
+PartOf=sympa.service
+
+[Service]
+User=sympa
+Group=sympa
+
+PermissionsStartOnly=true
+ExecStartPre=-/bin/mkdir -p /run/sympa
+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
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/sympa.sympa-bulk.service b/debian/sympa.sympa-bulk.service
new file mode 100644
index 0000000..57e431b
--- /dev/null
+++ b/debian/sympa.sympa-bulk.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=SYMPA mailing list manager (bulk)
+PartOf=sympa.service
+
+[Service]
+User=sympa
+Group=sympa
+
+PermissionsStartOnly=true
+ExecStartPre=-/bin/mkdir -p /run/sympa
+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
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/sympa.sympa-task_manager.service b/debian/sympa.sympa-task_manager.service
new file mode 100644
index 0000000..1738067
--- /dev/null
+++ b/debian/sympa.sympa-task_manager.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=SYMPA mailing list manager (task_manager)
+PartOf=sympa.service
+
+[Service]
+User=sympa
+Group=sympa
+
+PermissionsStartOnly=true
+ExecStartPre=-/bin/mkdir -p /run/sympa
+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
+
+[Install]
+WantedBy=multi-user.target
diff --git a/debian/sympa.sympa.service b/debian/sympa.sympa.service
new file mode 100644
index 0000000..707bfd4
--- /dev/null
+++ b/debian/sympa.sympa.service
@@ -0,0 +1,19 @@
+[Unit]
+Description=SYMPA mailing list manager
+Wants=sympa-bulk.service sympa-archived.service sympa-bounced.service sympa-task_manager.service
+
+[Service]
+User=sympa
+Group=sympa
+
+PermissionsStartOnly=true
+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
+
+[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