Questions tagged [openrc]

OpenRC is a flexible init system. It was created for and is used primarily by Gentoo.

Filter by
Sorted by
Tagged with
1
vote
1answer
18 views

Set DM on OpenRC

How do I set a display manager on an OpenRC system? I'm trying to use the Ly display manager. E.g. on a systemd distro I'd do $ sudo systemctl enable ly.service but how do I do it here?
0
votes
0answers
24 views

openrc: disable NetworkManager waiting

Is that possible to disable waiting for connection when starting NetworkManager on boot?
0
votes
0answers
40 views

Serial console and terminal with openrc and sysvinit

I have a PC with a serial interface and I would like to run GNU/Linux on it using a serial console (this would spare me attaching a screen and a keyboard to it since I would like to use it as a server)...
1
vote
0answers
117 views

Alpine/OpenRC networking fails to start (boot toofast?)

I am using alpine, my primary distro for servers is Arch with NetworkManager or the built-in "netctl". I installed Alpine onto a server. It boots up OK, but the networking never comes up on its own. ...
1
vote
1answer
517 views

init script for alpine not working

I am trying to write an init script for gitea in alpine. The first code I tried was #!/sbin/openrc-run command=/usr/bin/gitea command_args="web" pidfile=/var/run/git.pid name="Gitea Daemon" ...
1
vote
2answers
26 views

servresolv.conf become blank when system is running

I use dhcpcd to manage this file. First, start dhcpcd service, and the file has something with namesever. All things can be done correctly. But this file will become blank after a while. I try ...
4
votes
1answer
604 views

Is it possible to run Devuan Ascii with OpenRC init?

I have Devuan Ascii with SysVinit installed. I see that the openRC version is much older in Devuan ascii repository. Has anyone tried Devuan with openRC? Is the parallel starts enabled for openRC?
4
votes
0answers
239 views

How to view daemon stdout in openrc?

How do I find stdout of a process in openrc? Here's how I created my daemon. /etc/init.d/mydaemon #!/sbin/openrc-run command="python3" command_args="/srv/http/tornado.py" command_background="yes"...
1
vote
1answer
484 views

Gentoo's openrc hangs forever in “caching service dependencies…”

Whenever I boot my gentoo laptop, openrc hangs forever in the "Caching service dependencies..." stage. This causes my computer to be unbootable unless I use a sysrq key to kill it and manually boot ...
1
vote
0answers
89 views

Why are my Uinput gamepad events not working?

I have a problem from Artix Linux: I want to connect my Wii Remote to use it as a Gamepad, it does not want to work because the uinput module does not want to interpret the events associated with ...
0
votes
1answer
244 views

How to setup an OpenRC service to run at “login” level?

What I want is simple: I want that after my user login through agetty, my display manager (LightDM) or whatever login way, a specific service of OpenRC be run. Is there a way to setup that?. My ...
1
vote
0answers
58 views

How I signalize that a service of OpenRC should start on the hotplugged runlevel?

I have a service called xboxdrvd that is triggered (and only activated/deactivated) by a udev rule, however always calling rc-status I got that the service was started on "manual" runlevel: The ...
0
votes
1answer
222 views

Weird behavior of configuration in OpenRC init script

I'm trying to make a simple OpenRC init script for a service. What I have so far looks like this: #!/sbin/openrc-run CONFIG=${CONFIG:-/etc/pysystemfan.json} pidfile=${PIDFILE:-/var/run/pysystemfan....
0
votes
1answer
372 views

Error while starting Docker daemon

I am using Gentoo as Host OS for Docker containers. I have compiled kernel using instructions on page https://wiki.gentoo.org/wiki/Docker#Kernel and I have installed Docker from Gentoo repository. ...
3
votes
2answers
3k views

How do I replace systemd with openrc on Arch Linux when systemd is already installed?

I expect troubles, so don't warn me ;-) . I'm seeking guidance, not warnings. I want to replace systemd on my venerable Arch laptop with OpenRC so I just ran pacman -S openrc. Fine. Now there are a ...
1
vote
0answers
21 views

On OpenRC is there any conditionals like --ifcrashed?

I want execute a command if a given service is crashed, but I only found that conditionals: sudo openrc -s <service> --ifstarted <command> sudo openrc -s <service> --ifstopped <...
1
vote
0answers
145 views

HP printer won't work on Debian w/ OpenRC

I have successfully converted Debian 8.7 from systemd to OpenRC via this guide. The latter portion of the guide says this: Let's say you want package hplip (printing software for HP printers), a ...
2
votes
1answer
173 views

Does OpenRC support cgroups v2?

A simple question: does OpenRC support cgroups version 2? It seems that only version 1 is supported. And if it supports v2, how do I enable it?
1
vote
1answer
355 views

What effect does rc_sys=“docker” have?

The official Gentoo Dockerfile contains this line: RUN sed -e 's/#rc_sys=""/rc_sys="docker"/g' -i /etc/rc.conf As of the present time, Gentoo's default init is OpenRC. If I run the docker image ...
4
votes
1answer
570 views

how do i call a bash script from inside an init.d script?

Is it possible to call a bash script from inside an init.d script in linux? I need to call it and also return results. Sorry, I'm not a sysadmin and I've never created an init.d script. Right now I'...
1
vote
0answers
151 views

Launching a program with /sbin/runscript into /etc/init.d without creating a orphaned process

I've a script into /etc/init.d that executes a process. This is an OpenRC /sbin/runscript, but it starts a process becomes orphaned. In fact, when I do the command: ps -elf | awk '{if ($5 == 1){print ...
1
vote
1answer
307 views

CUPS does not show me printers except with brave browser

Suddenly, since yesterday CUPS has not shown me printers in any application except brave browser (see screenshots above). I use Archlinux with OpenRC (artoo way). Before yesterday, I have no problems ...
3
votes
3answers
131 views

Systemd init message appears when booting OpenRC

I´m using Parabola (Arch based) with OpenRC. It had originally Systemd, but then I moved to OpenRC. I don´t know why but when I turn on my PC, it appears the message error "Failed to find cpu0 device ...
2
votes
1answer
934 views

Polkit/Consolekit is not working in openRC

some time ago I moved from Systemd to OpenRC. It was very different, to be able to use audio and webcam I had to add my user to the audio, optical and video group. As some software uses pkexec to be ...
2
votes
2answers
4k views

User's incrontab not working (only root's) when incrond is run as a service

Here is my incrontab (tony's incrontab): /home/tony/Workspace/cocoonr/ui/static/ui/img/icons/vector IN_MODIFY,IN_CREATE,IN_MOVED_TO /bin/sh /home/tony/Workspace/cocoonr/boilerplate/svg2djangohtml $@/$...
0
votes
0answers
371 views

No RC messages at the start between kernel loading and login prompt

I have a 4.3.2 kernel and OpenRC 0.19.1. After the kernel loads there is no messages from the RC scripts. And then, there is the prompt to log in. There is another system with identical rc.conf and ...
1
vote
2answers
260 views

Gentooo system mounts readonly, won't boot, services segfault

After upgrading to OpenRC 0.20 the system fails to boot properly: mounted into runlelevel unknown (kernel 3.17.1) The / partition is mounted read-only /dev/sda3 on / type ext4 (ro, realtime, data=...
3
votes
1answer
823 views

Lightdm Won't Start in Test Mode With OpenRC

I have a funtoo installation and I recently did sudo emerge x11-misc/lightdm which appeared to work fine, but attempting to start lightdm in test mode with sudo lightdm --test-mode gives this: ** (...
5
votes
1answer
14k views

systemd: default value for environment variable

I would like to migrate some OpenRC init script to systemd but I think that it is general problem of environment variables handling in systemd. Original OpenRC files There is a file e.g. /etc/conf.d/...
2
votes
2answers
2k views

Sabayon - mysql (and other services) won't start

It's a fresh install of Sabayon Linux. I installed mysql (equo install dev-db/mysql), configured it (emerge --config ...), but it doesn't start using /etc/init.d script: # /etc/init.d/mysql start * ...
17
votes
8answers
9k views

How to read the shut down messages afterwards?

I'm using Lubuntu 11.10. Every time I shut down I can read FAIL in red letters, but I can not read more. So, how to read the log messages and try to solve the problem?