Questions tagged [openrc]

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

52 questions
18
votes
9 answers

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?
Sigur
  • 2,411
  • 8
  • 34
  • 45
10
votes
1 answer

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" pidfile="/tmp/tornado.pid" All I get in my logs…
deathangel908
  • 356
  • 5
  • 19
7
votes
1 answer

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/fooservice with contents # value of FOO…
j123b567
  • 365
  • 1
  • 3
  • 9
6
votes
2 answers

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 $@/$#…
Antoine Pinsard
  • 121
  • 1
  • 7
5
votes
1 answer

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?
Confguy2016
  • 211
  • 1
  • 6
4
votes
1 answer

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" description="Gitea - Git with a cup of tea" start() { …
karlsebal
  • 795
  • 8
  • 20
4
votes
2 answers

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 couple of packages, such as lvm2-openrc, which…
user86969
4
votes
2 answers

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?
Megver83
  • 301
  • 3
  • 11
4
votes
1 answer

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'm looking at other init.d scripts i see on my box…
Happydevdays
  • 213
  • 3
  • 6
4
votes
1 answer

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: ** (lightdm:12656): WARNING **: Failed to get list of…
Ell
  • 91
  • 6
3
votes
1 answer

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 repository? May the fact that the two use two different…
Pietro
  • 539
  • 1
  • 7
  • 22
3
votes
3 answers

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 node" and "starting version 231" from Systemd,…
Megver83
  • 301
  • 3
  • 11
3
votes
1 answer

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 run as superuser, when I opened them (Because I…
Megver83
  • 301
  • 3
  • 11
2
votes
2 answers

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 * WARNING: mysql is already starting #…
Kombajn zbożowy
  • 215
  • 1
  • 11
2
votes
0 answers

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. I've narrowed it to running rc-status right…
DevilaN
  • 1,918
  • 10
  • 17
1
2 3 4