summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Biebl <biebl@debian.org>2014-08-20 19:33:11 +0200
committerMichael Biebl <biebl@debian.org>2014-08-20 19:33:33 +0200
commit9c01b4ecebcdf5ca911a09d308992355c5f67be7 (patch)
tree29d0098a1f4a1de2b5e398fe540436d8132681f0
parent24c28a0a4c80768b3d4ab6920aff40b7489f44ff (diff)
downloadrsyslog-9c01b4ecebcdf5ca911a09d308992355c5f67be7.tar.gz
Tweak rsyslog systemd service file
Add Documentation field and restart the rsyslogd daemon on failures.
-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