core/systemd-units/systemd-units.install
2012-06-11 03:58:37 +00:00

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
}