On Thu, 11 Aug 2016 19:50:09 +0000, Chris Knadle wrote:

> > But I also started looking at deb-systemd-helper (in
> > init-system-helpers) and found an interesting example:
> > 
> > https://sources.debian.net/src/isatapd/0.9.7-2/debian/postinst/?hl=12#L12
> > 
> > Maybe this is the way to go?
> > (And if yes: "disable" or "mask"?)
> 
> The code in the above link is what I expected to help: sourcing in the
> /etc/default file, and having systemd enable or disable the service in
> the postinst.
> 
> 
> I just had a look at the way this is being done in the vsftpd package;
> it Buidl-Depends on dh-systemd, and in the debian/rules file it has:
> 
>    dh ${@} --parallel --with=systemd
> 
> which is the same as you have in iodine, except for the --parallel...

Thanks for checking!

> When the package installs, it appears dh_systemd_enable modifies the
> vsftpd.postinst file (thus the file in /var/lib/dpkg info differs from
> that of the source package after installation -- ugh) which removes the
> above snippet and adds the following after the case statement:

Right, we get the automatically inserted snippets here. 

> This seems to be ... a bit more confusing than I would have hoped.

Ack.

Ok, I think I'll upload what I currently have, since my tests in a VM
a few days ago looked good for the cases I tests.

Thanks again for your help!


Cheers,
gregor

-- 
 .''`.  Homepage https://info.comodo.priv.at/ - OpenPGP key 0xBB3A68018649AA06
 : :' : Debian GNU/Linux user, admin, and developer -  https://www.debian.org/
 `. `'  Member of VIBE!AT & SPI, fellow of the Free Software Foundation Europe
   `-   NP: The Doors: Roadhouse Blues

Attachment: signature.asc
Description: Digital Signature

Reply via email to