Re: Runit questions

From: Steve Litt <slitt_at_troubleshooters.com>
Date: Tue, 11 Oct 2016 19:07:29 -0400

On Wed, 12 Oct 2016 00:09:02 +0200
Andy Mender <andymenderunix_at_gmail.com> wrote:

> Hello again,
>
> I'm rewriting some of the standard sysvinit and openrc scripts
> to ./run scripts
> and I have some problems with dbus. I took the ./run script from Void
> Linux as the original runit documentation doesn't have an exemplary
> dbus script. Whenever I check the status of dbus via "sv status
> dbus", I get the following
> error: "warning: dbus: unable to open supervise/ok: file does not
> exist". This
> makes no sense, as both /etc/sv/dbus/supervise/ and
> /var/service/dbus/supervise/
> contain the "ok" file. Below the run script from Void Linux:
> #!/bin/sh
> [ ! -d /run/dbus ] && install -m755 -g 22 -o 22 -d /run/dbus
> exec dbus-daemon --system --nofork --nopidfile

The idiomatic way to troubleshoot this is to get to a command prompt,
as root, and run /etc/sv/dbus/run

Watch the messages as they scroll up, and fix any problems.

If running it from the command prompt works, from the command prompt
try:

sv start dbus

See what happens. Also see what happens when you run:

runsv dbus

If some ways to run it work and others don't, continue to exploit the
differences.

 
SteveT

Steve Litt
September 2016 featured book: Twenty Eight Tales of Troubleshooting
http://www.troubleshooters.com/28
Received on Tue Oct 11 2016 - 23:07:29 UTC

This archive was generated by hypermail 2.3.0 : Sun May 09 2021 - 19:44:19 UTC