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

Reply via email to