From d50611823c584b891ad076ef922cfddd67c51752 Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Tue, 11 Jun 2013 23:32:11 +0200 Subject: add dh-systemd package, update changelog --- autoscripts/postinst-systemd-enable | 1 + autoscripts/postinst-systemd-enable-restart | 6 ++++++ autoscripts/postinst-systemd-enable-start | 6 ++++++ autoscripts/postinst-systemd-restart | 3 +++ autoscripts/postinst-systemd-start | 3 +++ autoscripts/postrm-systemd | 5 +++++ autoscripts/postrm-systemd-reload | 9 +++++++++ autoscripts/postrm-systemd-reload-only | 3 +++ autoscripts/prerm-systemd | 3 +++ autoscripts/prerm-systemd-restart | 3 +++ 10 files changed, 42 insertions(+) create mode 100644 autoscripts/postinst-systemd-enable create mode 100644 autoscripts/postinst-systemd-enable-restart create mode 100644 autoscripts/postinst-systemd-enable-start create mode 100644 autoscripts/postinst-systemd-restart create mode 100644 autoscripts/postinst-systemd-start create mode 100644 autoscripts/postrm-systemd create mode 100644 autoscripts/postrm-systemd-reload create mode 100644 autoscripts/postrm-systemd-reload-only create mode 100644 autoscripts/prerm-systemd create mode 100644 autoscripts/prerm-systemd-restart (limited to 'autoscripts') diff --git a/autoscripts/postinst-systemd-enable b/autoscripts/postinst-systemd-enable new file mode 100644 index 0000000..052dc0e --- /dev/null +++ b/autoscripts/postinst-systemd-enable @@ -0,0 +1 @@ +deb-systemd-helper enable #UNITFILES# >/dev/null || true diff --git a/autoscripts/postinst-systemd-enable-restart b/autoscripts/postinst-systemd-enable-restart new file mode 100644 index 0000000..a63aa6b --- /dev/null +++ b/autoscripts/postinst-systemd-enable-restart @@ -0,0 +1,6 @@ +deb-systemd-helper enable #UNITFILES# >/dev/null || true + +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + systemctl try-restart #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/postinst-systemd-enable-start b/autoscripts/postinst-systemd-enable-start new file mode 100644 index 0000000..6cccdcf --- /dev/null +++ b/autoscripts/postinst-systemd-enable-start @@ -0,0 +1,6 @@ +deb-systemd-helper enable #UNITFILES# >/dev/null || true + +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true + systemctl start #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/postinst-systemd-restart b/autoscripts/postinst-systemd-restart new file mode 100644 index 0000000..e96bc93 --- /dev/null +++ b/autoscripts/postinst-systemd-restart @@ -0,0 +1,3 @@ +if [ -d /run/systemd/system ]; then + systemctl try-restart #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/postinst-systemd-start b/autoscripts/postinst-systemd-start new file mode 100644 index 0000000..bf6458b --- /dev/null +++ b/autoscripts/postinst-systemd-start @@ -0,0 +1,3 @@ +if [ -d /run/systemd/system ]; then + systemctl start #UNITFILES# >/dev/null || true +fi diff --git a/autoscripts/postrm-systemd b/autoscripts/postrm-systemd new file mode 100644 index 0000000..ddc2269 --- /dev/null +++ b/autoscripts/postrm-systemd @@ -0,0 +1,5 @@ +if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then + if [ -x "/usr/bin/deb-systemd-helper" ]; then + deb-systemd-helper disable #UNITFILES# >/dev/null + fi +fi diff --git a/autoscripts/postrm-systemd-reload b/autoscripts/postrm-systemd-reload new file mode 100644 index 0000000..d86be20 --- /dev/null +++ b/autoscripts/postrm-systemd-reload @@ -0,0 +1,9 @@ +if [ "$1" = "remove" ] || [ "$1" = "purge" ]; then + if [ -x "/usr/bin/deb-systemd-helper" ]; then + deb-systemd-helper disable #UNITFILES# >/dev/null + fi +fi + +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true +fi diff --git a/autoscripts/postrm-systemd-reload-only b/autoscripts/postrm-systemd-reload-only new file mode 100644 index 0000000..91cd9e8 --- /dev/null +++ b/autoscripts/postrm-systemd-reload-only @@ -0,0 +1,3 @@ +if [ -d /run/systemd/system ]; then + systemctl --system daemon-reload >/dev/null || true +fi diff --git a/autoscripts/prerm-systemd b/autoscripts/prerm-systemd new file mode 100644 index 0000000..aa36110 --- /dev/null +++ b/autoscripts/prerm-systemd @@ -0,0 +1,3 @@ +if [ -d /run/systemd/system ]; then + systemctl stop #UNITFILES# >/dev/null +fi diff --git a/autoscripts/prerm-systemd-restart b/autoscripts/prerm-systemd-restart new file mode 100644 index 0000000..6f4e584 --- /dev/null +++ b/autoscripts/prerm-systemd-restart @@ -0,0 +1,3 @@ +if [ -d /run/systemd/system ] && [ "$1" = remove ]; then + systemctl stop #UNITFILES# >/dev/null +fi -- cgit v1.2.3