supervision - discussion about system services, daemon supervision, init, runlevel management, and tools such as s6 and runit
 help / color / mirror / Atom feed
* Starting xinetd in Void Linux.
@ 2024-12-27 15:44 peter
  0 siblings, 0 replies; 3+ messages in thread
From: peter @ 2024-12-27 15:44 UTC (permalink / raw)
  To: supervision; +Cc: peter

Hi,

Void Linux has package xinetd for x86_64. Installed here with 
"xbps-install xinetd" in updated Void.

ls -l /etc/sv/xinetd/* 
-rwxr-xr-x 1 root root 47 Jan 14  2021 /etc/sv/xinetd/run
lrwxrwxrwx 1 root root 27 Jan 14  2021 /etc/sv/xinetd/supervise -> /run/runit/supervise.xinetd

The last line above flashes reverse video on a red background; a hint 
that /run/runit/supervise.xinetd doesn't exist. So xinetd failed to 
start.

I've read https://docs.voidlinux.org/config/services/.  No mention of 
/run/<anything>.

How does runit start a service?

Where in the process is /run/runit/supervise.<service> created?

A fix for this failure?

Thanks,                          ... P.

-- 
VoIP:   +1 604 670 0140
work: https://en.wikibooks.org/wiki/User:PeterEasthope


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Starting xinetd in Void Linux.
@ 2024-12-27 18:56 Roger Pate via supervision
  0 siblings, 0 replies; 3+ messages in thread
From: Roger Pate via supervision @ 2024-12-27 18:56 UTC (permalink / raw)
  To: peter, supervision

December 27, 2024 at 11:51 AM, peter@easthope.ca wrote:
> I've read https://docs.voidlinux.org/config/services/. No mention of 
> /run/<anything>.

The Void Linux documentation could be better.

Did you follow the instructions in section "Enabling Services", and if something unexpected happened, what was that?

Once the service has been enabled, did you follow the instructions starting with "To start, stop, restart or get the status of a service", and if something unexpected happened, what was that?

It would be nice if their documentation provided a through-line example of installing a package, enabling a corresponding service, testing the service, and configuring the service to start on boot.  If you want them to do that, you might ask them at https://github.com/void-linux/void-docs.  Their documentation also says this about contributing: "If you have any questions, feel free to ask them via IRC in #voidlinux on irc.libera.chat, or in the voidlinux subreddit."

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Starting xinetd in Void Linux.
       [not found] <6e010a4a2cd50805@abakus>
@ 2024-12-27 17:53 ` Jan Braun
  0 siblings, 0 replies; 3+ messages in thread
From: Jan Braun @ 2024-12-27 17:53 UTC (permalink / raw)
  To: peter; +Cc: supervision

[-- Attachment #1: Type: text/plain, Size: 1198 bytes --]

peter@easthope.ca schrob:
> lrwxrwxrwx 1 root root 27 Jan 14  2021 /etc/sv/xinetd/supervise -> /run/runit/supervise.xinetd
> 
> The last line above flashes reverse video on a red background; a hint
> that /run/runit/supervise.xinetd doesn't exist.

...yet. Correct tho.

> So xinetd failed to start.

No, not because of that. See below.

> I've read https://docs.voidlinux.org/config/services/.  No mention of
> /run/<anything>.

/run/<anything> is an implementation detail not worthy of being
mentioned. :)

The interesting part is
https://docs.voidlinux.org/config/services/#enabling-services
ln -s /etc/sv/<service> /var/service/

> How does runit start a service?

runsvdir will (within 5s) notice that /var/service/xinetd/ has appeared,
and then start "runsv xinetd".

> Where in the process is /run/runit/supervise.<service> created?

runsv will notice that ./xinetd/supervise is a dangling symlink, and
create the directory (assuming /run/runit/ exists).

> A fix for this failure?

The only failure appears to be that you didn't enable the service before
expecting it to work.
Otherwise, what's the output of "sudo sv start xinetd"?

cheers,
    Jan

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 833 bytes --]

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2024-12-27 18:56 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-12-27 15:44 Starting xinetd in Void Linux peter
     [not found] <6e010a4a2cd50805@abakus>
2024-12-27 17:53 ` Jan Braun
2024-12-27 18:56 Roger Pate via supervision

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).