<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" style="display:none;"><!-- P {margin-top:0;margin-bottom:0;} --></style>
</head>
<body dir="ltr">
<div id="divtagdefaultwrapper" style="font-size:12pt;color:#000000;font-family:Calibri,Helvetica,sans-serif;" dir="ltr">
<p style="margin-top:0;margin-bottom:0">Apologies, previous email went half finished.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">So I can create `etc/systemd/system/mypackage.service` in the build directory and add `<span>systemctl daemon-reload</span>` to the postinst script. But this seems horribly hackish!</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">There is an assumption that the package is being built for Stretch, and only for Stretch.<br>
<br>
The bit I am thick on is `<span>Build-Dep: dh-systemd, dh --with=systemd</span>` ... Where does this go? If I include it in the control file it complains about user-defined fields and ignores it.</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Any help or advice you could offer would be much appreciated!</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Best regards,</p>
<p style="margin-top:0;margin-bottom:0"><br>
</p>
<p style="margin-top:0;margin-bottom:0">Graham<br>
</p>
<br>
<br>
<div style="color: rgb(0, 0, 0);">
<hr style="display:inline-block;width:98%" tabindex="-1">
<div id="divRplyFwdMsg" dir="ltr"><font style="font-size:11pt" color="#000000" face="Calibri, sans-serif"><b>From:</b> G Turner <hcrean@hotmail.co.uk><br>
<b>Sent:</b> 26 February 2018 22:59<br>
<b>To:</b> pkg-systemd-maintainers@lists.alioth.debian.org<br>
<b>Subject:</b> Adding Systemd service file to homebrew deb</font>
<div> </div>
</div>
<div dir="ltr">
<div id="x_divtagdefaultwrapper" dir="ltr" style="font-size:12pt; color:#000000; font-family:Calibri,Helvetica,sans-serif">
<p style="margin-top:0; margin-bottom:0">Hello,</p>
<p style="margin-top:0; margin-bottom:0"><br>
</p>
<p style="margin-top:0; margin-bottom:0">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:<br>
</p>
<p style="margin-top:0; margin-bottom:0"><a href="https://people.debian.org/~stapelberg/debconf13-making-your-package-work-with-systemd.pdf" class="x_OWAAutoLink" id="LPlnk965885" previewremoved="true">https://people.debian.org/~stapelberg/debconf13-making-your-package-work-with-systemd.pdf</a></p>
<div id="LPBorder_GT_15196855093070.251989492298646" style="margin-bottom:20px; overflow:auto; width:100%; text-indent:0px">
<table id="LPContainer_15196855092960.41341156960681413" style="width:90%; background-color:rgb(255,255,255); overflow:auto; padding-top:20px; padding-bottom:20px; margin-top:20px; border-top:1px dotted rgb(200,200,200); border-bottom:1px dotted rgb(200,200,200)" cellspacing="0">
<tbody>
<tr style="border-spacing:0px" valign="top">
<td id="x_TextCell_15196855092980.04851004045167051" colspan="2" style="vertical-align: top; padding: 0px; display: table-cell; position: relative;">
<div id="LPRemovePreviewContainer_15196855092980.17296183730019365"></div>
<div id="LPTitle_15196855092980.27605617857845743" style="top:0px; color:rgb(145,24,68); font-weight:400; font-size:21px; font-family:"wf_segoe-ui_light","Segoe UI Light","Segoe WP Light","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; line-height:21px">
<a id="LPUrlAnchor_15196855093000.1414649923166229" href="https://people.debian.org/~stapelberg/debconf13-making-your-package-work-with-systemd.pdf" target="_blank" style="text-decoration:none">DebConf 2013 org> Michael Stapelberg <stapelberg@debian.</a></div>
<div id="LPMetadata_15196855093030.9379189462439786" style="margin:10px 0px 16px; color:rgb(102,102,102); font-weight:400; font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:14px">
people.debian.org</div>
<div id="LPDescription_15196855093050.5744466823729955" style="display:block; color:rgb(102,102,102); font-weight:400; font-family:"wf_segoe-ui_normal","Segoe UI","Segoe WP",Tahoma,Arial,sans-serif; font-size:14px; line-height:20px; max-height:100px; overflow:hidden">
Non-topics systemd sucks, let’s use $initsys instead When will Debian switch the default? Essentially, anything that ever came up on</div>
</td>
</tr>
</tbody>
</table>
</div>
<p></p>
<p style="margin-top:0; margin-bottom:0">but am still really fuzzy as to how to include the service file in the package.<br>
</p>
</div>
</div>
</div>
</div>
</body>
</html>