Re: [OE-core] [PATCH] systemd.bbclass: restart service in postinst, not start

2013-04-10 Thread Burton, Ross
On 10 April 2013 06:46, Koen Kooi wrote: > In the specific case of upgrades you'll need to add a > > systemctl --system daemon-reload > > to catch changed unit files as well. Good catch, thanks. I'm not entirely optimistic about opkg postinsts being able to tell the difference between up

Re: [OE-core] [PATCH] systemd.bbclass: restart service in postinst, not start

2013-04-09 Thread Koen Kooi
Op 9 apr. 2013, om 17:48 heeft Ross Burton 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 restartin

[OE-core] [PATCH] systemd.bbclass: restart service in postinst, not start

2013-04-09 Thread Ross Burton
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