mirror of
https://gitdl.cn/https://github.com/chakralinux/core.git
synced 2025-02-03 13:07:13 +08:00
22 lines
296 B
Bash
22 lines
296 B
Bash
#!/bin/sh
|
|
|
|
reload_units() {
|
|
# reread all known unit files if systemd is running
|
|
if [ -e sys/fs/cgroup/systemd ]; then
|
|
systemctl daemon-reload
|
|
fi
|
|
}
|
|
|
|
## arg 1: the new package version
|
|
post_install() {
|
|
reload_units
|
|
}
|
|
|
|
post_remove() {
|
|
reload_units
|
|
}
|
|
|
|
post_upgrade() {
|
|
reload_units
|
|
}
|