瀏覽代碼

Restart zabbix-agent on upgrades

Emmanuel Bouthenot 10 年之前
父節點
當前提交
37029035c9
共有 1 個文件被更改,包括 15 次插入0 次删除
  1. 15 0
      debian/zabbix-plugins-client.postinst

+ 15 - 0
debian/zabbix-plugins-client.postinst

@@ -0,0 +1,15 @@
+#!/bin/sh
+
+#
+# Postinst for zabbix-plugins-client
+#
+
+set -e
+
+if [ -x "$(which zabbix_agent 2>/dev/null)" ]; then
+    invoke-rc.d zabbix-agent restart || true
+fi
+
+#DEBHELPER#
+
+exit 0