Re: is there a reason for starting zookeeper.service in background?

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

 



On Tue, 12.01.16 18:54, Reindl Harald (h.reindl@xxxxxxxxxxxxx) wrote:

> >Also, what happens if the daemon is configured to listen on some
> >different port? Or on multiple ports? Are you parsing the daemon's
> >config file too to figure out what to watch for? YUCK!
> 
> the Fedora myqld unit does, mine is simplified
> 
> the systemd-behavior that manual "systemctl stop whatever.service" don't
> prevent socket activation and fireup again the service is a systemd problem
> *you* have to solve if you want widely adopted usage of socket activation

That's hardly a "problem", as I see it. 

What you should be invoking is "systemctl stop whatever.socket
whatever.service", which terminates both the daemon and the listening
socket. I think that's pretty easy to grok for most folks, as long as
you realized the logic behind it once.

That said, of course, this is not obvious at first, hence since quite
some time "systemctl stop" will actually explain this to you: if you
stop a daemon, but leave its socket running, then you'll get a
friendly message telling you about this, and suggesting you the right
command line to terminate the socket too.

I am pretty sure this makes a lot of sense the way it is, and is
sufficiently well self-explanatory.

Lennart

-- 
Lennart Poettering, Red Hat
--
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxxx
http://lists.fedoraproject.org/admin/lists/devel@xxxxxxxxxxxxxxxxxxxxxxx




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Fedora Announce]     [Fedora Kernel]     [Fedora Testing]     [Fedora Formulas]     [Fedora PHP Devel]     [Kernel Development]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [PAM]     [Red Hat Development]     [Gimp]     [Yosemite News]
  Powered by Linux