Hi, On Mon, 18 Jun 2018, John Paul Adrian Glaubitz wrote:
+ if [ -f /usr/lib/systemd/system/google-ip-forwarding-daemon.service ]; then + systemctl stop --no-block google-ip-forwarding-daemon + systemctl disable google-ip-forwarding-daemon.service + fi + if [ -f /usr/lib/systemd/system/google-network-setup.service ]; then + systemctl stop --no-block google-network-setup + systemctl disable google-network-setup.service + fi + if [ "$1" == "2" ] && ! [ -e /.buildenv ]; then + systemctl enable google-network-daemon.service + systemctl start google-network-daemon.service + fi +%else + if [ "$1" == "2" ] && ! [ -e /.buildenv ]; then + service google-network-daemon start + fi
I think if anything you should only enable/start the new service if both the old services were enabled and started already. Think of a user who has the package installed, but disabled the services as conscious decision. After upgrade he suddenly has the service enabled again. Generally we have the policy of not starting or enabling services when installing packages, except for Very Good Reasons (and somebody requesting it somewhere is not necessarily one). Ciao, Michael. -- To unsubscribe, e-mail: opensuse-packaging+unsubscribe@opensuse.org To contact the owner, e-mail: opensuse-packaging+owner@opensuse.org