Skip to content

Commit

Permalink
Improve package postinst script. Restart collectd only if system moni…
Browse files Browse the repository at this point in the history
…toring is enabled.

Signed-off-by: Volker Theile <votdev@gmx.de>
  • Loading branch information
votdev committed Dec 15, 2017
1 parent 99ab5e7 commit 4fdcc58
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
7 changes: 7 additions & 0 deletions deb/openmediavault-nut/debian/changelog
@@ -1,3 +1,10 @@
openmediavault-nut (4.0.9-1) stable; urgency=low

* Improve package postinst script. Restart collectd only if system
monitoring is enabled.

-- Volker Theile <volker.theile@openmediavault.org> Fri, 15 Dec 2017 21:37:17 +0100

openmediavault-nut (4.0.8-1) stable; urgency=low

* Various improvements.
Expand Down
4 changes: 3 additions & 1 deletion deb/openmediavault-nut/debian/openmediavault-nut.postinst
Expand Up @@ -51,7 +51,9 @@ case "$1" in
########################################################################
if [ -z "$2" ]; then
echo "Restarting services ..."
monit restart collectd
if deb-systemd-helper is-enabled collectd.service; then
monit restart collectd || :
fi
deb-systemd-invoke force-reload rsyslog || :
fi

Expand Down

0 comments on commit 4fdcc58

Please sign in to comment.