Your message dated Mon, 2 Jan 2023 14:52:28 +0100
with message-id <[email protected]>
and subject line Re: Bug#781155: openbsd-inetd: openbsd-inetd.service should be 
the main service file
has caused the Debian Bug report #781155,
regarding openbsd-inetd: openbsd-inetd.service should be the main service file
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
781155: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=781155
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: openbsd-inetd
Version: 0.20140418-2
Severity: serious
User: [email protected]
Usertags: origin-kali

systemd doesn't seem to handle having two service files for the same
service very well.

For example, "systemctl disable openbsd-inetd" does not work since
inetd.service is the unit enabled by default:

$ ls -al /etc/systemd/system/multi-user.target.wants/inetd.service
lrwxrwxrwx 1 root root 33 mars  25 11:08 
/etc/systemd/system/multi-user.target.wants/inetd.service -> 
/lib/systemd/system/inetd.service
$ sudo systemctl status openbsd-inetd
● inetd.service - Internet superserver
   Loaded: loaded (/lib/systemd/system/inetd.service; enabled)
   Active: active (running) since sam. 2015-03-21 16:27:25 CET; 3 days ago
     Docs: man:inetd(8)
 Main PID: 728 (inetd)
   CGroup: /system.slice/inetd.service
           └─728 /usr/sbin/inetd -i
$ sudo systemctl disable openbsd-inetd
Synchronizing state for openbsd-inetd.service with sysvinit using update-rc.d...
Executing /usr/sbin/update-rc.d openbsd-inetd defaults
insserv: warning: current start runlevel(s) (empty) of script `openbsd-inetd' 
overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 
`openbsd-inetd' overrides LSB defaults (0 1 6).
Executing /usr/sbin/update-rc.d openbsd-inetd disable
insserv: warning: current start runlevel(s) (empty) of script `openbsd-inetd' 
overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (0 1 2 3 4 5 6) of script 
`openbsd-inetd' overrides LSB defaults (0 1 6).
$ sudo systemctl status openbsd-inetd
● inetd.service - Internet superserver
   Loaded: loaded (/lib/systemd/system/inetd.service; enabled)
   Active: active (running) since sam. 2015-03-21 16:27:25 CET; 3 days ago
     Docs: man:inetd(8)
 Main PID: 728 (inetd)
   CGroup: /system.slice/inetd.service
           └─728 /usr/sbin/inetd -i

I believe that the the main service file should be openbsd-inetd.service and
that you should not ship any symlink. Instead you should add 
"Alias=inetd.service"
to the openbsd-inetd.service file (in section [Install]).

That's the only setup that seems to work reasonably well. I tried having 
inetd.service
only with Alias=openbsd-inetd.service but that is not enough to disable the 
creation
of the openbsd-inetd SysV compat service file
(/run/systemd/generator.late/openbsd-inetd.service).

But even with this setup, you can't use "systemctl enable|disable inetd" since
that would not touch the openbsd-inetd.symlinks...

I have put serious severity because the above behaviour means that administrator
can't rely on "update-rc.d disable" doing the right thing (even if update-rc.d
is fixed, cf #746580) and that we should really fix this for jessie IMO.

-- System Information:
Debian Release: 8.0
  APT prefers squeeze-lts
  APT policy: (500, 'squeeze-lts'), (500, 'unstable'), (500, 'testing'), (500, 
'stable'), (500, 'oldstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.16.0-4-amd64 (SMP w/4 CPU cores)
Locale: LANG=fr_FR.utf8, LC_CTYPE=fr_FR.utf8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)

Versions of packages openbsd-inetd depends on:
ii  init-system-helpers  1.22
ii  libbsd0              0.7.0-2
ii  libc6                2.19-16
ii  libwrap0             7.6.q-25
ii  lsb-base             4.1+Debian13+nmu1
ii  tcpd                 7.6.q-25
ii  update-inetd         4.43

openbsd-inetd recommends no packages.

openbsd-inetd suggests no packages.

-- no debconf information

--- End Message ---
--- Begin Message ---
On Apr 13, Marco d'Itri <[email protected]> wrote:

> Because naming the init script "openbsd-inetd" was an historical 
> accident caused by problems when replacing the old netkit-inetd.
> Since we had this in jessie and it did not cause noticeable problems 
> I would rather keep the names as they are.
Hence, closing.

-- 
ciao,
Marco

Attachment: signature.asc
Description: PGP signature


--- End Message ---

Reply via email to