diff options
author | xtex | 2024-02-17 12:04:44 +0800 |
---|---|---|
committer | xtex | 2024-02-17 12:04:44 +0800 |
commit | 392d93d33844c29cae30109f605ec47d734facf6 (patch) | |
tree | 4f30d68d892ae7725c764a16d0547a8b1544724a | |
parent | 590671ad7859ab8c9d419c526663a1beace395cf (diff) | |
download | aur-dinit-systemd.tar.gz |
Reload systemd daemon automatically after install
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | PKGBUILD | 5 | ||||
-rwxr-xr-x | dinit-systemd.install | 14 |
3 files changed, 18 insertions, 2 deletions
diff --git a/.gitignore b/.gitignore index 937b2601c7ed..679c4a34f2a5 100644 --- a/.gitignore +++ b/.gitignore @@ -3,5 +3,6 @@ !.gitignore !.SRCINFO !PKGBUILD +!dinit-systemd.install !dinit.service !dinit-user.service @@ -1,11 +1,12 @@ # Maintainer: xtex <xtexchooser @ duck . com> pkgname=dinit-systemd -pkgver=1 +pkgver=2 pkgrel=1 pkgdesc='Systemd service files for dinit - Service monitoring / "init" system' arch=(any) license=('Apache') -depends=('dinit') +depends=('dinit' 'systemd') +install='dinit-systemd.install' source=("dinit.service" "dinit-user.service") sha256sums=('b485f7c5a8ffb3665ad426e814eecb388dde9064835b100acdce15410f175639' diff --git a/dinit-systemd.install b/dinit-systemd.install new file mode 100755 index 000000000000..60c3c88b9ed5 --- /dev/null +++ b/dinit-systemd.install @@ -0,0 +1,14 @@ +post_install() { + echo ">>> Reloading systemd daemon" + systemctl daemon-reload +} + +post_upgrade() { + echo ">>> Reloading systemd daemon" + systemctl daemon-reload +} + +post_remove() { + echo ">>> Reloading systemd daemon" + systemctl daemon-reload +} |