Apologies, previous email went half finished.

So I can create `etc/systemd/system/mypackage.service` in the build directory 
and add `systemctl daemon-reload` to the postinst script. But this seems 
horribly hackish!


There is an assumption that the package is being built for Stretch, and only 
for Stretch.

The bit I am thick on is `Build-Dep: dh-systemd, dh --with=systemd` ... Where 
does this go? If I include it in the control file it complains about 
user-defined fields and ignores it.


Any help or advice you could offer would be much appreciated!


Best regards,


Graham


________________________________
From: G Turner <hcr...@hotmail.co.uk>
Sent: 26 February 2018 22:59
To: pkg-systemd-maintainers@lists.alioth.debian.org
Subject: Adding Systemd service file to homebrew deb


Hello,


I am trying to create an installable package that I can pop in my private repo 
for an in-house tool that uses Sysd to start/restart. I read the article at:

https://people.debian.org/~stapelberg/debconf13-making-your-package-work-with-systemd.pdf

DebConf 2013 org> Michael Stapelberg 
<stapelberg@debian.<https://people.debian.org/~stapelberg/debconf13-making-your-package-work-with-systemd.pdf>
people.debian.org
Non-topics systemd sucks, let’s use $initsys instead When will Debian switch 
the default? Essentially, anything that ever came up on


but am still really fuzzy as to how to include the service file in the package.
_______________________________________________
Pkg-systemd-maintainers mailing list
Pkg-systemd-maintainers@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-systemd-maintainers

Reply via email to