[systemd-devel] systemctl restart changes permission.

2020-04-29 Thread Kaushal Shriyan
Hi,

I am running CentOS Linux release 7.8.2003 (Core)
with php72u-fpm-7.2.30-1.el7.ius.x86_64 version. I am facing the below
permission denied issue. I also did the below steps
#cd /run
#chown -Rc nginx.nginx php-fpm
changed ownership of ‘php-fpm/php-fpm.pid’ from root:root to nginx:nginx
changed ownership of ‘php-fpm’ from root:root to nginx:nginx
#systemctl restart php-fpm again changes it from nginx.nginx to root.root
user.


nginx error logs
> 2020/04/30 03:09:28 [crit] 17175#0: *154570 connect() to
> unix:/run/php-fpm/www.sock failed (13: *Permission denied*) while
> connecting to upstream, client: 49.207.54.161, server: _, request: "GET /
> HTTP/1.1", upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host:
> "35.128.212.112"
> 2020/04/30 03:09:28 [error] 17175#0: *154570 open()
> "/var/www/drupal/web/50x.html" failed (2: No such file or directory),
> client: 49.207.54.161, server: _, request: "GET / HTTP/1.1", upstream:
> "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
> 2020/04/30 03:09:35 [crit] 17176#0: *154573 connect() to
> unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting
> to upstream, client: 49.207.54.161, server: _, request: "GET / HTTP/1.1",
> upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
> 2020/04/30 03:09:35 [error] 17176#0: *154573 open()
> "/var/www/drupal/web/50x.html" failed (2: No such file or directory),
> client: 49.207.54.161, server: _, request: "GET / HTTP/1.1", upstream:
> "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
> 2020/04/30 03:09:49 [crit] 17175#0: *154575 connect() to
> unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting
> to upstream, client: 14.98.153.6, server: _, request: "GET / HTTP/1.1",
> upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
> 2020/04/30 03:09:49 [error] 17175#0: *154575 open()
> "/var/www/drupal/web/50x.html" failed (2: No such file or directory),
> client: 14.98.153.6, server: _, request: "GET / HTTP/1.1", upstream:
> "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
> 2020/04/30 03:09:50 [crit] 17175#0: *154575 connect() to
> unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting
> to upstream, client: 14.98.153.6, server: _, request: "GET / HTTP/1.1",
> upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
> 2020/04/30 03:09:50 [error] 17175#0: *154575 open()
> "/var/www/drupal/web/50x.html" failed (2: No such file or directory),
> client: 14.98.153.6, server: _, request: "GET / HTTP/1.1", upstream:
> "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"
> 2020/04/30 03:10:46 [crit] 17176#0: *154578 connect() to
> unix:/run/php-fpm/www.sock failed (13: Permission denied) while connecting
> to upstream, client: 184.22.107.148, server: _, request: "GET / HTTP/1.1",
> upstream: "fastcgi://unix:/run/php-fpm/www.sock:", host: "35.128.212.112"
> 2020/04/30 03:10:46 [error] 17176#0: *154578 open()
> "/var/www/drupal/web/50x.html" failed (2: No such file or directory),
> client: 184.22.107.148, server: _, request: "GET / HTTP/1.1", upstream:
> "fastcgi://unix:/run/php-fpm/www.sock", host: "35.128.212.112"


Please let me know if you need any additional information. Thanks in
Advance.

Best Regards,

Kaushal
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] [systemd-level]: how to change default timezone in systemd code?

2020-04-29 Thread www



hi Silvio,


Thank you for your help. I'll try it locally.







thanks,
Byron





At 2020-04-29 21:27:46, "Silvio Knizek"  wrote:
>Am Mittwoch, den 29.04.2020, 20:31 +0800 schrieb www:
>> Dear All,
>>
>> I want to change the default timezone in systemd, when it first starts, it 
>> shows the time zone I want. How can I modify the code in systemd to 
>> implement the function?
>>
>> thanks,
>> Byron
>Hi,
>
>the default timezone is just the symlink /etc/localtime to
>../usr/share/zoneinfo/your/timezone
>There is no magic behind this. It can be easy automated and pre-
>configured.
>You can use systemd-firstboot to set the timezone, too.
>
>BR
>Silvio
>
>___
>systemd-devel mailing list
>systemd-devel@lists.freedesktop.org
>https://lists.freedesktop.org/mailman/listinfo/systemd-devel
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] How to figure out what's causing systemd to start printing messages partway through boot?

2020-04-29 Thread McKay, Sean
Hi all,

Hopefully quick question:
Do you have any guidance on what I should look at to determine what is causing 
the show_status variable in systemd to get flipped to true without any apparent 
unit failures? Is there an easy way to find that information?

We have a few systems that start printing the manager status messages halfway 
through bootup (that aren't supposed to). They have 'quiet' set on the kernel 
command line and they appear to be following that for a good chunk of the boot, 
but partway through I start getting '[  OK ] Started...' messages without any 
failure showing up first (which is what I expect and have seen in other 
scenarios). Running 'systemctl show' after the system has booted, shows that 
the variable has indeed been flipped.  From looking through the code, it 
appears the only way this is possible should be for a unit to have

I've poked through the journal near where things start showing up and there 
doesn't appear to be anything in particular that sticks out... so I turned on 
debug logging and there's a ton of it. And I haven't yet had any luck figuring 
out what I'm looking for from digging through the source code. So I figured I'd 
ask.

Thanks!
-Sean McKay

P.S. We're still waaay back on 229. Frantically trying to get things 
upgraded, but not there yet. I don't think that's relevant (I doubt this is a 
systemd bug), but it might come up if there's more tooling/verbosity in newer 
versions.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] How to figure out what's causing systemd to start printing messages partway through boot?

2020-04-29 Thread McKay, Sean
I apparently failed to finish a sentence. Fixed. My apologies!

From: McKay, Sean
Sent: Wednesday, April 29, 2020 4:15 PM
To: systemd-devel@lists.freedesktop.org
Subject: How to figure out what's causing systemd to start printing messages 
partway through boot?

Hi all,

Hopefully quick question:
Do you have any guidance on what I should look at to determine what is causing 
the show_status variable in systemd to get flipped to true without any apparent 
unit failures? Is there an easy way to find that information?

We have a few systems that start printing the manager status messages halfway 
through bootup (that aren't supposed to). They have 'quiet' set on the kernel 
command line and they appear to be following that for a good chunk of the boot, 
but partway through I start getting '[  OK ] Started...' messages without any 
failure showing up first (which is what I expect and have seen in other 
scenarios). Running 'systemctl show' after the system has booted, shows that 
the variable has indeed been flipped.  From looking through the code, it 
appears the only way this is possible should be for a unit to have hit some 
status other than "OK" (JOB_DONE internally, it would appear) but I don't see 
any of those in the output. And I'm not sure if there's an equivalent in the 
journal to search for.

I've poked through the journal near where things start showing up and there 
doesn't appear to be anything in particular that sticks out... so I turned on 
debug logging and there's a ton of it. And I haven't yet had any luck figuring 
out what I'm looking for from digging through the source code. So I figured I'd 
ask.

Thanks!
-Sean McKay

P.S. We're still waaay back on 229. Frantically trying to get things 
upgraded, but not there yet. I don't think that's relevant (I doubt this is a 
systemd bug), but it might come up if there's more tooling/verbosity in newer 
versions.
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] [systemd-level]: how to change default timezone in systemd code?

2020-04-29 Thread Silvio Knizek
Am Mittwoch, den 29.04.2020, 20:31 +0800 schrieb www:
> Dear All,
>
> I want to change the default timezone in systemd, when it first starts, it 
> shows the time zone I want. How can I modify the code in systemd to implement 
> the function?
>
> thanks,
> Byron
Hi,

the default timezone is just the symlink /etc/localtime to
../usr/share/zoneinfo/your/timezone
There is no magic behind this. It can be easy automated and pre-
configured.
You can use systemd-firstboot to set the timezone, too.

BR
Silvio

___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


[systemd-devel] [systemd-level]: how to change default timezone in systemd code?

2020-04-29 Thread www
Dear All,


I want to change the default timezone in systemd, when it first starts, it 
shows the time zone I want. How can I modify the code in systemd to implement 
the function?


thanks,
Byron___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel


Re: [systemd-devel] systemd vulnerability detection

2020-04-29 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Apr 29, 2020 at 08:53:23AM +0530, Amish wrote:
> 
> On 29/04/20 1:00 am, Lennart Poettering wrote:
> >Please see:
> >
> >https://systemd.io/SECURITY/
> >
> >...
> >
> >Lennart
> 
> On a side note, phrasing on the site needs to be changed.

https://github.com/systemd/systemd/pull/15632 ?

Zbyszek
___
systemd-devel mailing list
systemd-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/systemd-devel