[Bug 1738958] Re: Ordering of start and apparmor reload upgrade can cause issues

2018-05-29 Thread  Christian Ehrhardt 
The snippet I initially found is for a "trigger" which is independent (other things need to reatsrt ntp. Sorry for the noise. I found that the new postinst leaves ntp around but reloads the profile (ok with the process running) Eventually (after the reload) there is a invoke-rc.d ntp start || i

[Bug 1738958] Re: Ordering of start and apparmor reload upgrade can cause issues

2017-12-21 Thread intrigeri
Indeed, steps 3 and 4 should ideally happen in the reverse order. I don't know if debhelper provides facilities to order autoscript snippets though. In passing, once https://bugs.launchpad.net/ubuntu/+source/apparmor/+bug/1385414 is done I think we should use systemd's AppArmorProfile= directive a