core/systemd-units/systemd-units.install

22 lines
296 B
Plaintext
Raw Normal View History

2012-06-11 11:58:37 +08:00
#!/bin/sh
reload_units() {
# reread all known unit files if systemd is running
if [ -e sys/fs/cgroup/systemd ]; then
systemctl daemon-reload
fi
}
2011-06-17 20:40:10 +08:00
## arg 1: the new package version
post_install() {
2012-06-11 11:58:37 +08:00
reload_units
}
2011-06-17 20:40:10 +08:00
2012-06-11 11:58:37 +08:00
post_remove() {
reload_units
2011-06-17 20:40:10 +08:00
}
post_upgrade() {
2012-06-11 11:58:37 +08:00
reload_units
}