debhelper package version: 13.11.6ubuntu1
Ubuntu 23.10 Mantic

Is there any plan for support of user services?
The user service is complicated by itself because it differs by commands
from system services.
That's why I also asked to make a review of mine scripts to have at least
one right example of this.


On Mon, Mar 11, 2024 at 10:48 AM Niels Thykier <ni...@thykier.net> wrote:

> Sergey Ponomarev:
> > Package: dh-systemd
> >
> > I created a systemd service to establish SSH connections.
> > At beginning I installed the service file
> > into /usr/lib/systemd/system/sshtunnel
> > So the dh_systemd generated post install and post remove scripts to call
> > sysctl daemon-reload.
> > I copied them, made a small cleanup and included manually:
> >
> https://github.com/yurt-page/sshtunnel/commit/1b8f5f4a495802270b894ccf7f047aadab8772ac
> >
> > Then I wanted to make the tunnel starting from a user and moved the
> service
> > file into /usr/lib/systemd/user/sshtunnel
> >
> > But the dh_installsystemd didn't anything about the service file and I
> had
> > to create manually the install scripts:
> > https://github.com/yurt-page/sshtunnel/blob/master/debian/postinst
> > https://github.com/yurt-page/sshtunnel/blob/master/debian/prerm
> > https://github.com/yurt-page/sshtunnel/blob/master/debian/postrm
> >
> > So could you please review the scripts and their generation to the
> > dh_installsystemd?
> >
> > Here is a man page for the dh_installsystemd
> >
> https://manpages.debian.org/testing/debhelper/dh_installsystemd.1.en.html
> >
>
> Hi,
>
> Which version of debhelper are you using?  Support for /usr is only in
> unstable/testing. I would recommend adding a Build-Depends on `debhelper
> (>=13.11.9~) to ensure you have all the `/usr-merge` related feature
> support.  In the concrete case, 13.11.8~ might be sufficient (and
> happens to be available in stable-backports)
>
> Best regards,
> Niels
>
>

Reply via email to