summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog7
-rw-r--r--debian/patches/0002-systemd-service-file-tweaks.patch33
-rw-r--r--debian/patches/series1
3 files changed, 41 insertions, 0 deletions
diff --git a/debian/changelog b/debian/changelog
index 7e5437d..fcd69bc 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+rsyslog (8.4.0-2) UNRELEASED; urgency=medium
+
+ * Tweak rsyslog systemd service file. Add Documentation field and restart
+ the rsyslogd daemon on failures.
+
+ -- Michael Biebl <biebl@debian.org> Wed, 20 Aug 2014 19:31:37 +0200
+
rsyslog (8.4.0-1) unstable; urgency=medium
* New upstream release.
diff --git a/debian/patches/0002-systemd-service-file-tweaks.patch b/debian/patches/0002-systemd-service-file-tweaks.patch
new file mode 100644
index 0000000..761a9a1
--- /dev/null
+++ b/debian/patches/0002-systemd-service-file-tweaks.patch
@@ -0,0 +1,33 @@
+From: Michael Biebl <biebl@debian.org>
+Date: Wed, 20 Aug 2014 19:28:41 +0200
+Subject: systemd service file tweaks
+
+- Add Documentation field, pointing to the rsyslogd(8) man page and the
+ rsyslog website [1].
+- Restart rsyslogd daemon on failures [2].
+
+[1] http://www.freedesktop.org/software/systemd/man/systemd.unit.html#Documentation=
+[2] http://www.freedesktop.org/software/systemd/man/systemd.service.html#Restart=
+---
+ rsyslog.service.in | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/rsyslog.service.in b/rsyslog.service.in
+index 8e2d64c..cb629ee 100644
+--- a/rsyslog.service.in
++++ b/rsyslog.service.in
+@@ -1,11 +1,14 @@
+ [Unit]
+ Description=System Logging Service
+ Requires=syslog.socket
++Documentation=man:rsyslogd(8)
++Documentation=http://www.rsyslog.com/doc/
+
+ [Service]
+ Type=notify
+ ExecStart=@sbindir@/rsyslogd -n
+ StandardOutput=null
++Restart=on-failure
+
+ [Install]
+ WantedBy=multi-user.target
diff --git a/debian/patches/series b/debian/patches/series
index a8e093a..5a1152d 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -1 +1,2 @@
0001-Don-t-create-a-database.patch
+0002-systemd-service-file-tweaks.patch