Questions tagged [openrc]
OpenRC is a flexible init system. It was created for and is used primarily by Gentoo.
53
questions
0
votes
0
answers
38
views
how to know graphic current user(s) and DISPLAY(s) by root
Gentoo, openrc, X11.
Hi,
For my suspend process, I need to get something like
[user] [DISPLAY]
for example:
chris :0
I can do it with:
for sessionid in $(/bin/loginctl list-sessions --no-legend | ...
1
vote
1
answer
346
views
How to know the boot time (kernel + init) in Alpine using openRC?
I made a bit of research on the matter and also asked ChatGPT, but there doesn't seem to be a way to measure full boot time of an alpine distribution with OpenRC.
Using dmesg, I can see the last ...
0
votes
0
answers
42
views
Manually installing a Kernel/Init System
I would like to create a lightweight Linux distribution for my Raspberry Pi 400 (for educational purposes). I have looked at Buildroot and Gentoo Linux, but both require compiling OS components from ...
0
votes
0
answers
228
views
Problem connecting to MS Office365 e-mail with Evolution
I am trying to connect to my workplace's Office365 e-mail with Evolution mail and I am getting the following error when I try to authenticate:
Failed to obtain access token from address “https://login....
1
vote
0
answers
183
views
How not to load Tumbler service at XFCE login on Alpine Linux
When I log in to XFCE, it seems /usr/lib/tumbler-1/tumblerd is started and uses relatively a large amount of memory. I do not need thumbnails. I want to remove it, but it is required for XFCE, so I ...
0
votes
0
answers
203
views
LibreOffice systematically crashes my Linux system
When I launch LibreOffice, I get the widget with the LibreOffice logo (the one displayed while the application loads), then my screen blinks three/four times, then it turns black. All I can do at that ...
2
votes
0
answers
46
views
Why rc-status changes ip_forward state and how to prevent it?
I've got some issue with gentoo rc-status (currently using sys-apps/openrc-0.45.2-r1 but it was happening long time before this version). From time to time some of machines are loosing ip_forwarding. ...
1
vote
1
answer
1k
views
Alpine Linux: Convert Podman systemd to openrc
I use Alpine Linux and podman command to generate container systemd
Command:
podman generate systemd -n test -f
Output:
# container-test
# autogenerated by Podman 3.4.7
# Fri Apr 29 02:29:47 CEST ...
0
votes
1
answer
181
views
Cannot install Linux after upgrading SSD drive, issues with GRUB
This was my previous, working configuration:
SSD1 - 256GB NVMe - Windows 10
SSD2 - 512GB SATA - Linux
This is my new configuration after an upgrade:
SSD1 - 1TB NVMe - Empty, unformatted
SSD2 - ...
0
votes
1
answer
489
views
What breaks package compatibility between OpenRC and Systemd
I switched recently to Artix Linux with OpenRC as Init-system. I was using Manjaro before, which uses Systemd. Anyway, I was trying to install some packages I used on Manjaro that I have gotten from ...
1
vote
1
answer
2k
views
How to disable a particular dbus system service under an openrc system
I know that one can override dbus session services in ~/.local/share/dbus-1/services
But it necessarily won't work for system services.
Under openrc, I don't get systemd's systemctl command therefore :...
1
vote
0
answers
352
views
How does htop measure ram usage? And why do thin inits use 4Bytes of residential memory
I have seen PID1(openRC) get reported as 4Bytes Residential memory usage in Alpine Linux.
Right now I am running busybox init on the below machine.
How do some of those processes use 4Bytes of memory?
...
1
vote
1
answer
985
views
Bash script: check wan ip periodically and act if IP is changed
I'm new to Bash and I just don't understand how to write a simple script that will do the following.
The script should check what public IP I have, and if IP is changed (in case of ISP1 failure or in ...
1
vote
1
answer
2k
views
How to Connect to Bluetooth (Adapter) under Artix (Arch) OpenRC
I have a Bluetooth USB adapter that I plug into my desktop PC to help me connect to Bluetooth stuff. It works perfectly under Windows 10. Except that I really can't get it to work with Artix OpenRC ...
0
votes
1
answer
577
views
Using openrc and using logrotate causes logging to stop working using Alpine Linux
I'm using a very vanilla openrc service to run a Go application I wrote that spits out logging data to stdout which was working perfectly fine before I enabled logrorate on my application's log files. ...
0
votes
0
answers
63
views
weird errors at boot and shutdown
I am running Adelie Linux, an independent distro based on musl and openRC as service manager, on a x86_64 laptop. My desktop environment is KDE Plasma 5.18. When the system is shutting down, I notice ...
0
votes
1
answer
56
views
Strange keyboard behaviour "k" not available under dwm except dmenu
I'm using a german standard keyboard (Cherry KC 1000, qwertz, with ä, ö, ü, etc.) set to us layout and installed an artix linux (openrc) system from scratch manually and seemingly something very ...
1
vote
1
answer
380
views
shift altgr combination for console keymap
I am using Artix Linux with OpenRC.
I want to define a custom console keymap to generally use the US-design, but add some extra functionality for German umlauts. The following does work:
/usr/share/...
1
vote
1
answer
239
views
How can I diagnose my broken X server (Parabola/Arch)?
I am using Parabola GNU/Linux (based on Arch) on an x86 desktop with an nVidia GTX 1050 GPU. I ran pacman -Su yesterday to perform a full system upgrade and it seems to have completely broken my X ...
1
vote
0
answers
190
views
v4l2 not accepting configuration until after boot
I'm using v4l2 on my Raspberry Pi 3A+ with Alpine Linux but the official Raspberry Pi Kernel/Firmware installed. I'm trying to have my Raspi-Camera autostart and serve a livestream through mjpg-...
2
votes
2
answers
8k
views
How to improve startup time of OpenRC system?
My Gentoo system with OpenRC init takes a long time to start, about 24 seconds (measured from GRUB to GDM). I was wondering if there are any recommended ways how to improve this time. But there isn't ...
3
votes
1
answer
2k
views
Can Systemd-free Artix Linux install packages from parent Arch Linux?
I want to install the Systemd-free Artix Linux, but noticed on DistroWatch that it misses many packages. Being an Arch based distribution, is it possible to install packages directly from Arch ...
2
votes
1
answer
524
views
OpenRC Bluetooth
I recently switched to OpenRC and cannot seem to find any up-to-date information on how to get bluetooth working. Most things on the Arch Wiki seem to be focused around systemd and PulseAudio.
...
0
votes
1
answer
2k
views
Can't start polkit-mate-authentication-agent
I'm using Mate on Parabola GNU/Linux (based on Arch). I have the polkit-mate-authentication-agent installed and it is supposed to be autostarting on login to the desktop; however, it doesn't seem to ...
1
vote
1
answer
1k
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?
1
vote
0
answers
806
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. ...
4
votes
1
answer
4k
views
Troubleshooting Gitea openrc script in Alpine: Forking and logging issues
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
2
answers
46
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 ...
5
votes
1
answer
3k
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?
12
votes
1
answer
7k
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
1
answer
1k
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
0
answers
200
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 ...
3
votes
3
answers
2k
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
1
answer
444
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
1
answer
528
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
1
answer
1k
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.
...
4
votes
2
answers
10k
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
0
answers
74
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
0
answers
181
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 ...
4
votes
2
answers
660
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
1
answer
780
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
1
answer
2k
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
0
answers
350
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
1
answer
461
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
3
answers
252
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 ...
3
votes
1
answer
2k
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 ...
6
votes
2
answers
10k
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
0
answers
662
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
2
answers
331
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=...
4
votes
1
answer
1k
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:
** (...