Package: pgpool2 Version: 3.3.3-3 Severity: wishlist Tags: patch User: [email protected] Usertags: systemd-units
Dear maintainer, please add the attached systemd service file. For more details on systemd packaging, see http://wiki.debian.org/Systemd/Packaging In case of any questions, feel free to drop by in #debian-systemd or send an email to [email protected] -- System Information: Debian Release: jessie/sid APT prefers testing APT policy: (990, 'testing') Architecture: amd64 (x86_64) Foreign Architectures: armel i386 Kernel: Linux 3.14-1-amd64 (SMP w/8 CPU cores) Locale: LANG=de_DE.UTF-8, LC_CTYPE=de_DE.UTF-8 (charmap=UTF-8) Shell: /bin/sh linked to /bin/dash Versions of packages pgpool2 depends on: ii libc6 2.18-4 ii libmemcached11 1.0.18-3 ii libpam0g 1.1.8-3 ii libpgpool0 3.3.3-2 ii libpq5 9.3.4-1 ii libssl1.0.0 1.0.1g-3 ii lsb-base 4.1+Debian12 ii postgresql-common 154 ii ucf 3.0027+nmu1 pgpool2 recommends no packages. pgpool2 suggests no packages. -- Configuration Files: /etc/pgpool2/pcp.conf changed [not included] -- no debconf information
>From 04e39a0b89193ba6fa86680bff70670fb38e730a Mon Sep 17 00:00:00 2001 From: Michael Stapelberg <[email protected]> Date: Wed, 30 Jul 2014 00:15:27 +0200 Subject: [PATCH] add pgpool2 systemd service file --- debian/control | 2 +- debian/pgpool2.service | 14 ++++++++++++++ debian/pgpool2.tmpfile | 2 ++ debian/rules | 2 +- 4 files changed, 18 insertions(+), 2 deletions(-) create mode 100644 debian/pgpool2.service create mode 100644 debian/pgpool2.tmpfile diff --git a/debian/control b/debian/control index 5e51fee..fb26f52 100644 --- a/debian/control +++ b/debian/control @@ -4,7 +4,7 @@ Priority: optional Maintainer: Debian PostgreSQL Maintainers <[email protected]> Uploaders: Christoph Berg <[email protected]> Build-Depends: debhelper (>= 9), libpq-dev, postgresql-server-dev-all (>= 148~), - libpam0g-dev, libssl-dev, libmemcached-dev, dh-autoreconf, + libpam0g-dev, libssl-dev, libmemcached-dev, dh-autoreconf, dh-systemd (>= 1.19), # test/parser: bison, flex, ruby Standards-Version: 3.9.5 diff --git a/debian/pgpool2.service b/debian/pgpool2.service new file mode 100644 index 0000000..8334e7f --- /dev/null +++ b/debian/pgpool2.service @@ -0,0 +1,14 @@ +[Unit] +Description=pgpool-II +Documentation=man:pgpool(8) +Wants=postgresql.service + +[Service] +User=postgres +ExecStart=/usr/sbin/pgpool -n +ExecReload=/bin/kill -HUP $MAINPID +StandardOutput=syslog +SyslogFacility=local0 + +[Install] +WantedBy=multi-user.target diff --git a/debian/pgpool2.tmpfile b/debian/pgpool2.tmpfile new file mode 100644 index 0000000..b2d823f --- /dev/null +++ b/debian/pgpool2.tmpfile @@ -0,0 +1,2 @@ +# See tmpfiles.d(5) for details +d /var/run/postgresql 2775 postgres postgres - diff --git a/debian/rules b/debian/rules index f4f69b3..1a579f9 100755 --- a/debian/rules +++ b/debian/rules @@ -65,4 +65,4 @@ override_dh_install: dh_install --list-missing %: - dh $@ --with autoreconf + dh $@ --with autoreconf,systemd -- 1.9.1
_______________________________________________ Pkg-postgresql-public mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-postgresql-public
