Op 9 apr. 2013, om 17:48 heeft Ross Burton <ross.bur...@intel.com> het volgende 
geschreven:

> When upgrading packages it's possible that the service is already running
> because opkg doesn't actually execute the prerm hooks on upgrades, which is
> where the service should be stopped.
> 
> Handle this case by restarting in postinst instead of starting.  If the 
> service
> isn't already running then this doesn't make a difference, but if it is 
> running
> then the service will be restarted.

In the specific case of upgrades you'll need to add a

        systemctl --system daemon-reload

to catch changed unit files as well.

regards,

Koen
_______________________________________________
Openembedded-core mailing list
Openembedded-core@lists.openembedded.org
http://lists.linuxtogo.org/cgi-bin/mailman/listinfo/openembedded-core

Reply via email to