[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1036751: RFS: mini-httpd/1.30-4 [ITA] -- Small HTTP server



Hi Alexandru,

On Thu, 01 Jun 2023 12:05:51 +0000
Alexandru Mihail <alexandru_mihail@protonmail.ch> wrote:

> Hi Nicholas,
> I've uploaded again to mentors, the (now gone) lintian warning
> complained about missing the SystemD service for the package. I've
> added one from scratch and upon initial testing it performs OK. I
> modified debian/rules to take the service into consideration though
> this raises some concerns for non-systemd Debian installations. I
> assume further modifications are required to intelligently enable or
> ignore the service (use old init.d mechanism).

(looking at your rules file)
override_dh_installinit:
	dh_installinit --no-stop-on-upgrade --no-start --name=mini-httpd

override_dh_installsystemd:
	dh_installsystemd --name=mini-httpd

if the '--no-stop-on-upgrade --no-start' is to avoid a conflict between
the systemd service and the init.d file, you don't need that: debhelper
generated scripts should do the right thing.
If you look at generated maintscripts you see that systemctl calls are
guarded by a test for /run/systemd/system (it imply that systemd is the
running init); the equivalent code for sysvinit (invoke.rc.d) is not
guarded but that's ok since other inits are supposed to mask
initscripts and systemd already does that.

Regards,
Lorenzo

> Kind regards,
> Alexandru Mihail
> 


Reply to: