Nginx doesn't get restarted after setting userdir_access to no

Erulezz

Verified User
Joined
Sep 14, 2015
Messages
949
Location
🇳🇱
I disabled userdir_access to no and did the ./build rewrite_confs:

Code:
[root@web01 custombuild]# ./build set userdir_access no
Changed userdir_access option from yes to no
[root@web01 custombuild]# ./build rewrite_confs
Checking to ensure /etc/nginx/ssl.crt/server.ca is set.
Using x for your server IP
Using x for your server IP
Restarting nginx.

But nginx fails to restart:

Code:
nginx.service - The nginx HTTP and reverse proxy server
   Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Tue 2016-01-26 12:17:03 CET; 7s ago
  Process: 32719 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=1/FAILURE)

After i do a manual restart it worked and nginx is running fine. Not a big bug offcourse but still nice to see fixed. :)
 
the same

Here the same issue after rebulding the cinfigs.

./build rewrite_confs
......

# service nginx restart
Redirecting to /bin/systemctl restart nginx.service

# service nginx status
Redirecting to /bin/systemctl status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2016-02-21 21:02:47 CET; 1s ago
Process: 11858 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=1/FAILURE)
Process: 12394 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 12392 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 12396 (nginx)
CGroup: /system.slice/nginx.service
├─12396 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─12397 nginx: worker process
├─12398 nginx: worker process
├─12399 nginx: worker process
└─12400 nginx: worker process

Feb 21 21:02:47 ***.nl systemd[1]: Starting The nginx HTTP and reverse proxy server...
Feb 21 21:02:47 ***.nl nginx[12392]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Feb 21 21:02:47 ***.nl nginx[12392]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Feb 21 21:02:47 ***.nl systemd[1]: Started The nginx HTTP and reverse proxy server.

# service nginx restart
Redirecting to /bin/systemctl restart nginx.service
service nginx status
Redirecting to /bin/systemctl status nginx.service
● nginx.service - The nginx HTTP and reverse proxy server
Loaded: loaded (/etc/systemd/system/nginx.service; enabled; vendor preset: disabled)
Active: active (running) since Sun 2016-02-21 21:02:56 CET; 1s ago
Process: 12429 ExecStop=/bin/kill -s QUIT $MAINPID (code=exited, status=0/SUCCESS)
Process: 12436 ExecStart=/usr/sbin/nginx -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Process: 12434 ExecStartPre=/usr/sbin/nginx -t -c /etc/nginx/nginx.conf (code=exited, status=0/SUCCESS)
Main PID: 12438 (nginx)
CGroup: /system.slice/nginx.service
├─12438 nginx: master process /usr/sbin/nginx -c /etc/nginx/nginx.conf
├─12439 nginx: worker process
├─12440 nginx: worker process
├─12441 nginx: worker process
└─12442 nginx: worker process

Feb 21 21:02:55 ***.nl systemd[1]: Starting The nginx HTTP and reverse proxy server...
Feb 21 21:02:55 ***.nl nginx[12434]: nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
Feb 21 21:02:55 ***.nl nginx[12434]: nginx: configuration file /etc/nginx/nginx.conf test is successful
Feb 21 21:02:56 ***.nl systemd[1]: Started The nginx HTTP and reverse proxy server.


No errors in the nginx error_logs
 
Back
Top