[Debian-ha-commits] [csync2] 02/05: Add systemd socket in disabled state
Valentin Vidic
vvidic-guest at moszumanska.debian.org
Fri Oct 21 13:07:23 UTC 2016
This is an automated email from the git hooks/post-receive script.
vvidic-guest pushed a commit to branch master
in repository csync2.
commit 3ab5b000d168cd11ebf887a40caeec93d30de0b3
Author: Valentin Vidic <Valentin.Vidic at CARNet.hr>
Date: Fri Oct 21 13:36:35 2016 +0200
Add systemd socket in disabled state
---
debian/control | 1 +
debian/csync2.socket | 9 +++++++++
debian/csync2 at .service | 9 +++++++++
debian/rules | 5 ++++-
4 files changed, 23 insertions(+), 1 deletion(-)
diff --git a/debian/control b/debian/control
index a539ced..5e308ce 100644
--- a/debian/control
+++ b/debian/control
@@ -17,6 +17,7 @@ Build-Depends: debhelper (>= 9),
libgnutls-openssl-dev,
texlive-latex-extra,
pkg-config,
+ dh-systemd
Standards-Version: 3.9.8
Vcs-Browser: https://anonscm.debian.org/cgit/debian-ha/csync2.git/
Vcs-Git: https://alioth.debian.org/anonscm/git/debian-ha/csync2.git
diff --git a/debian/csync2.socket b/debian/csync2.socket
new file mode 100644
index 0000000..e8b330a
--- /dev/null
+++ b/debian/csync2.socket
@@ -0,0 +1,9 @@
+[Unit]
+Description=Cluster file synchronization socket
+
+[Socket]
+ListenStream=30865
+Accept=true
+
+[Install]
+WantedBy=sockets.target
diff --git a/debian/csync2 at .service b/debian/csync2 at .service
new file mode 100644
index 0000000..d839528
--- /dev/null
+++ b/debian/csync2 at .service
@@ -0,0 +1,9 @@
+[Unit]
+Description=Cluster file synchronization daemon
+Documentation=man:csync2(1)
+
+[Service]
+ExecStart=-/usr/sbin/csync2 -i -l
+StandardInput=socket
+StandardOutput=socket
+StandardError=syslog
diff --git a/debian/rules b/debian/rules
index e395e7a..b91afe9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -5,7 +5,7 @@ export FORCE_SOURCE_DATE=1
CFLAGS = $(shell dpkg-buildflags --get CFLAGS) -I$(shell pg_config --includedir)
%:
- dh $@ --with autotools_dev,autoreconf
+ dh $@ --with autotools_dev,autoreconf,systemd
override_dh_auto_configure:
dh_auto_configure \
@@ -23,3 +23,6 @@ override_dh_autoreconf:
override_dh_installchangelogs:
dh_installchangelogs
rm debian/csync2/usr/share/doc/csync2/ChangeLog
+
+override_dh_systemd_enable:
+ dh_systemd_enable --no-enable csync2.socket
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-ha/csync2.git
More information about the Debian-HA-Commits
mailing list