I run apache with
as I have for decades and now when I start it up and log out, the system is killing httpd after closing the terminal. I had the same thing happen with mariadb and I fixed the start file under init and now it works, but only when started with /etc/init.d/mariadb start
what the heck was changed?
Hello
I was hoping to get some feedback on this because it has to affect so many other systems and testing environment. Classically, from a terminal, I can run and test a dameon from the shell and then run it with
nohup /usr/sbin/dameon &
and the process detatches from the shell. I can log out without trouble.
Now it seems that kernel is killing these processes if you kill the getty process that the shell is attached to.
For example, I ssh to a server
I su- to root
I start the dameon
I exit root - process is still running
I exit user and terminate the ssh session - now the dameon is killed by a "normal" signal automatically according to the logs.
When I start it with opernrc though it remains working.
Check /etc/elogind/logind.conf for KillUserProcesses=yes, if there change it to "no".
If that wasn't the problem, use nohup(1) to make sure your backgrounded process stays alive after logout.