I can confirm this behavior in xenial, but to be honest I'm not sure what's the correct expected outcome.
Can you perhaps accomplish something similar using /usr/sbin/policy- rc.d? You can create that script and it would check if samba is the service being started, and then check if the disk you need is verified and decrypted, and do nothing otherwise. See this bug and its comments 7 and 8 for an example: https://bugs.launchpad.net/ubuntu/+source/freeradius/+bug/1712817 Would that work for you? ** Changed in: samba (Ubuntu) Status: New => Incomplete -- You received this bug notification because you are a member of Ubuntu Server Team, which is subscribed to samba in Ubuntu. https://bugs.launchpad.net/bugs/1737534 Title: smbd/nmbd don't restart after upgrade if started but disabled To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/samba/+bug/1737534/+subscriptions -- Ubuntu-server-bugs mailing list [email protected] Modify settings or unsubscribe at: https://lists.ubuntu.com/mailman/listinfo/ubuntu-server-bugs
