Bug 30844 - Confusion on Debian where /etc/init.d/avahi-daemon Provides avahi
Summary: Confusion on Debian where /etc/init.d/avahi-daemon Provides avahi
Status: RESOLVED INVALID
Alias: None
Product: systemd
Classification: Unclassified
Component: general (show other bugs)
Version: unspecified
Hardware: Other All
: medium normal
Assignee: Lennart Poettering
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-10-13 14:06 UTC by Joachim Breitner
Modified: 2013-12-01 23:35 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments

Description Joachim Breitner 2010-10-13 14:06:31 UTC
Hi,

on Debian (systemd 11-1), the init script /etc/init.d/avahi-daemon Provides: avahi, and is as such referred by other init scripts headers:
cups:# Should-Start:      $network avahi
saned:# Should-Start:      dbus avahi
saned:# Should-Stop:       dbus avahi

This results in this situation:
$ systemctl --all --full|grep avahi
avahi-daemon.service      loaded active   running       LSB: Avahi mDNS/DNS-SD Daemon
avahi.service             error  inactive dead          avahi.service


$ systemctl status avahi.service avahi-daemon.service
avahi.service
	  Loaded: error
	  Active: inactive (dead)

avahi-daemon.service - LSB: Avahi mDNS/DNS-SD Daemon
	  Loaded: loaded (/etc/init.d/avahi-daemon)
	  Active: active (running) since [Wed, 13 Oct 2010 21:29:40 +0200; 1h 34min ago]
	 Process: 1897 (/etc/init.d/avahi-daemon start, code=exited, status=0/SUCCESS)
	  CGroup: name=systemd:/systemd-1/avahi-daemon.service
		  ├ 1905 avahi-daemon: running [kirk.local]
		  └ 1906 avahi-daemon: chroot helper

$ systemctl show avahi.service avahi-daemon.service
Id=avahi.service
Names=avahi.service
Before=cups.service saned.service
Description=avahi.service
LoadState=error
ActiveState=inactive
SubState=dead
CanStart=yes
CanStop=yes
CanReload=no
CanIsolate=no
RecursiveStop=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
NeedDaemonReload=no
JobTimeoutUSec=0
Type=simple
Restart=no
NotifyAccess=none
RestartUSec=100ms
TimeoutUSec=1min
UMask=0002
LimitCPU=18446744073709551615
LimitFSIZE=18446744073709551615
LimitDATA=18446744073709551615
LimitSTACK=18446744073709551615
LimitCORE=18446744073709551615
LimitRSS=18446744073709551615
LimitNOFILE=1024
LimitAS=18446744073709551615
LimitNPROC=46965
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=46965
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=4
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=inherit
StandardError=inherit
SyslogPriority=30
SyslogLevelPrefix=yes
SecureBits=0
CapabilityBoundingSetDrop=0
MountFlags=1048576
PrivateTmp=no
SameProcessGroup=no
KillMode=control-group
KillSignal=15
PermissionsStartOnly=no
RootDirectoryStartOnly=no
RemainAfterExit=no
ExecMainPID=0
ExecMainCode=0
ExecMainStatus=0
MainPID=0
ControlPID=0
SysVStartPriority=-1

Id=avahi-daemon.service
Names=avahi-daemon.service
Requires=basic.target
WantedBy=multi-user.target
ConflictedBy=shutdown.target
Before=shutdown.target multi-user.target
After=remote-fs.target dbus.service syslog.target basic.target
Description=LSB: Avahi mDNS/DNS-SD Daemon
LoadState=loaded
ActiveState=active
SubState=running
InactiveExitTimestamp=Wed, 13 Oct 2010 21:29:39 +0200
ActiveEnterTimestamp=Wed, 13 Oct 2010 21:29:40 +0200
CanStart=yes
CanStop=yes
CanReload=yes
CanIsolate=no
RecursiveStop=no
StopWhenUnneeded=no
RefuseManualStart=no
RefuseManualStop=no
AllowIsolate=no
DefaultDependencies=yes
DefaultControlGroup=name=systemd:/systemd-1/avahi-daemon.service
ControlGroups=name=systemd:/systemd-1/avahi-daemon.service
NeedDaemonReload=no
JobTimeoutUSec=0
Type=forking
Restart=no
NotifyAccess=none
RestartUSec=100ms
TimeoutUSec=1min
ExecStart={ path=/etc/init.d/avahi-daemon ; argv[]=/etc/init.d/avahi-daemon start ; ignore=no ; start_time=[n/a] ; stop_time=[Wed, 13 Oct 2010 21:29:40 +0200] ; pid=1897 ; code=exited ; status=0 }
ExecReload={ path=/etc/init.d/avahi-daemon ; argv[]=/etc/init.d/avahi-daemon reload ; ignore=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/ }
ExecStop={ path=/etc/init.d/avahi-daemon ; argv[]=/etc/init.d/avahi-daemon stop ; ignore=no ; start_time=[n/a] ; stop_time=[n/a] ; pid=0 ; code=(null) ; status=0/ }
UMask=0002
LimitCPU=18446744073709551615
LimitFSIZE=18446744073709551615
LimitDATA=18446744073709551615
LimitSTACK=18446744073709551615
LimitCORE=18446744073709551615
LimitRSS=18446744073709551615
LimitNOFILE=1024
LimitAS=18446744073709551615
LimitNPROC=46965
LimitMEMLOCK=65536
LimitLOCKS=18446744073709551615
LimitSIGPENDING=46965
LimitMSGQUEUE=819200
LimitNICE=0
LimitRTPRIO=0
LimitRTTIME=18446744073709551615
OOMScoreAdjust=0
Nice=0
IOScheduling=4
CPUSchedulingPolicy=0
CPUSchedulingPriority=0
TimerSlackNSec=50000
CPUSchedulingResetOnFork=no
NonBlocking=no
StandardInput=null
StandardOutput=null
StandardError=inherit
SyslogPriority=30
SyslogLevelPrefix=yes
SecureBits=0
CapabilityBoundingSetDrop=0
MountFlags=1048576
PrivateTmp=no
SameProcessGroup=no
KillMode=process-group
KillSignal=15
PermissionsStartOnly=no
RootDirectoryStartOnly=no
RemainAfterExit=yes
ExecMainPID=0
ExecMainCode=0
ExecMainStatus=0
MainPID=0
ControlPID=0
SysVPath=/etc/init.d/avahi-daemon
SysVRunLevels=2345
SysVStartPriority=4

$ systemctl show cups.service|grep Before
Before=samba.service shutdown.target multi-user.target

Here is the avahi-daemon init script header:
$ head -n 14  /etc/init.d/avahi-daemon 
#!/bin/sh
### BEGIN INIT INFO
# Provides:          avahi
# Required-Start:    $remote_fs dbus
# Required-Stop:     $remote_fs dbus
# Should-Start:	     $syslog
# Should-Stop:       $syslog
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: Avahi mDNS/DNS-SD Daemon
# Description:       Zeroconf daemon for configuring your network 
#                    automatically
### END INIT INFO

Thanks,
Joachim
Comment 1 Michael Biebl 2013-01-28 15:53:33 UTC
Since avahi-daemon in Debian ships a native systemd service file, I should probably just add a Alias=avahi.service to [Install] so those LSB/SysV services which have a Should-Start: avahi have proper ordering.

That said, avahi uses socket activation, so this explicit ordering isn't actually needed anymore and it is merely a cosmetic issue. So I'm inclined to just close this upstream bug. If at all, this is something that should be dealt with in the Debian avahi package.
Comment 2 Cristian Rodríguez 2013-12-01 23:35:31 UTC
This is a bug in your distribution 's packages, if still around after please fill a bug report in the debian BTS, thank you.


Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.