I yum'd httpd on a new Centos 7 box and when I did a ps (after systemctl start), I see
httpd -DFOREGROUND
What is that?
If I change this in httpd.service:
...then it's just normal httpd. But what is this -DFOREGROUND stuff?
To me running something in the foreground is a way to run a daemon without having it go in the background, so you can debug it, error messages print to the terminal, and you can kill it easily. It would never be something that I'd choose as a default for a daemon...but I'm probably misunderstanding -DFOREGROUND. Alas, Google did not help.
I would also like to take this opportunity to say how much systemd sucks. Thank you.
httpd -DFOREGROUND
What is that?
If I change this in httpd.service:
Code:
[Service]
#Type=notify
Type=forking
#ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND
ExecStart=/usr/sbin/httpd $OPTIONS
...then it's just normal httpd. But what is this -DFOREGROUND stuff?
To me running something in the foreground is a way to run a daemon without having it go in the background, so you can debug it, error messages print to the terminal, and you can kill it easily. It would never be something that I'd choose as a default for a daemon...but I'm probably misunderstanding -DFOREGROUND. Alas, Google did not help.
I would also like to take this opportunity to say how much systemd sucks. Thank you.