B
B
borodka_lenina2016-03-04 15:49:24
Nginx
borodka_lenina, 2016-03-04 15:49:24

Why doesn't nginx start when the server is rebooted?

CentOS 7.1 I install nginx, configure vhost, set chkconfig 345 levels, start the service, check everything - it works. After the server reboot, it does not rise by itself, in the nginx/error.log log:
2016/03/04 12:32:28 [emerg] 833#0: mkdir() "/mnt/resource/nginx/all-cache" failed (2 : No such file or directory)
2016/03/04 12:38:58 [emerg] 830#0: mkdir() "/mnt/resource/nginx/all-cache" failed (2: No such file or directory)
Although there is a directory, owner - nginx, rights 755.
Where else to look?
Hands it is started normally, starts at once, works apprx.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
M
mureevms, 2016-03-04
@borodka_lenina

Nginx starts before directory is mounted

V
Vlad Zhivotnev, 2016-03-04
@inkvizitor68sl

Get /mnt/resource correct in /etc/fstab

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question