From 62148bc2c2b49bba41e44c4f9a4783cde68652b1 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Thu, 4 Mar 2021 13:55:15 +0300 Subject: pacman: call systemctl on (de)installation --- dist/pacman/linux-status.install | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 dist/pacman/linux-status.install (limited to 'dist/pacman/linux-status.install') diff --git a/dist/pacman/linux-status.install b/dist/pacman/linux-status.install new file mode 100644 index 0000000..32b9a90 --- /dev/null +++ b/dist/pacman/linux-status.install @@ -0,0 +1,19 @@ +post_install() { + systemctl --system daemon-reload + systemctl --system enable linux-status + systemctl --system start linux-status +} + +pre_remove() { + systemctl --system stop linux-status.service + systemctl --system disable linux-status.service + systemctl --system daemon-reload +} + +pre_upgrade() { + pre_remove "$1" +} + +post_upgrade() { + post_install "$1" +} -- cgit v1.2.3