Use systemd post/preun/postun macros.