docker-systemctl-replacement icon indicating copy to clipboard operation
docker-systemctl-replacement copied to clipboard

Oops on execute "systemctl restart nginx"

Open ancienter opened this issue 4 years ago • 9 comments

ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! ERROR:systemctl: Oops, 1 unsupported directory settings. You need to create those before using the service. ERROR:systemctl: !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

ancienter avatar Nov 12 '20 04:11 ancienter

use systemctl start nginx -vvv. You see broken param in nginx.service file. Delete PrivateTmp=true from nginx.service file and after use killall nginx. Now you can start nginx

DenisLuka21 avatar Nov 12 '20 13:11 DenisLuka21

it's down,it works now

ancienter avatar Nov 17 '20 16:11 ancienter

thinks

ancienter avatar Nov 17 '20 16:11 ancienter

Hi, new to this project. I have a question about the default PrivateTemp=true setting(also set for apache). Is there some other setup required to make the default work, or is the only option to change the service file after httpd install and before systemctl start?

lhenry7 avatar Dec 07 '20 15:12 lhenry7

On the develop branch, I have just changed the implementation - after looking into the details of what PrivateTmp should do, it seems that we can just ignore that setting in a docker container.

I may find the time to release it to master over the holidays.

gdraheim avatar Dec 07 '20 15:12 gdraheim

@gdraheim - Sounds great, I look forward to giving it a try once ready.

lhenry7 avatar Dec 08 '20 13:12 lhenry7

i'am sorry,i have a wrong config,i found it then it works well now。

ancienter avatar Dec 08 '20 14:12 ancienter

Yes, it is caused by this problem. I found the problem after consulting the document, so it can work now. Thank you very much for your answer

ancienter avatar Dec 08 '20 14:12 ancienter

Yes, that's the problem. I checked the documentation and found the problem. I configured it manually, so it works now

ancienter avatar Dec 08 '20 14:12 ancienter