Adding Systemd service file to homebrew deb
G Turner
hcrean at hotmail.co.uk
Mon Feb 26 23:03:49 GMT 2018
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 <hcrean at hotmail.co.uk>
Sent: 26 February 2018 22:59
To: pkg-systemd-maintainers at 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 at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-systemd-maintainers/attachments/20180226/86c2972c/attachment-0002.html>
More information about the Pkg-systemd-maintainers
mailing list