<p dir="ltr"><br>
On 11 Aug 2015 06:49, "Tanu Kaskinen" <<a href="mailto:tanuk@iki.fi">tanuk@iki.fi</a>> wrote:<br>
><br>
> On Thu, 2015-08-06 at 09:05 -0300, Felipe Sateler wrote:<br>
> > On 6 August 2015 at 05:14, Peter Meerwald <<a href="mailto:pmeerw@pmeerw.net">pmeerw@pmeerw.net</a>> wrote:<br>
> > ><br>
> > > > This ensures systemd knows when pulseaudio finishes loading, thus<br>
> > > > never<br>
> > > > marking pulseaudio as active if startup fails.<br>
> > ><br>
> > > the notify thing doesn't work together with --daemonize;<br>
> ><br>
> > This can be solved by either setting NotifyAccess=all in the unit or<br>
> > passing the main pid back to systemd at fork time (I haven't actually<br>
> > tried this but should work). The latter should be the best option of<br>
> > these 2,<br>
> > but maybe we should just document the --no-daemonize requirement? I<br>
> > doubt there is actually a need to run pulseaudio daemonized uner<br>
> > systemd.<br>
><br>
> Does this problem only exist when PulseAudio is managed by systemd?<br>
> That is, the sd_notify() calls are harmless if PulseAudio was started<br>
> via some other means? If so, then I agree with Felipe - I think it's<br>
> sufficient to document that --daemonize shouldn't be used in systemd<br>
> unit files.</p>
<p dir="ltr">Yes, sd_notify does nothing when not invoked via systemd. This works via a socket passed via an environment variable. If that variable is not set, then sd_notify just returns.</p>
<p dir="ltr">Where should that be documented?  Is a comment in the unit  enough, or should this be in the man page somewhere? </p>
<p dir="ltr">Saludos<br>
</p>