B
B
borodka_lenina2016-03-10 16:17:22
linux
borodka_lenina, 2016-03-10 16:17:22

How to start nginx after waagent starts?

Hello.
Waagent mounts the resource that nginx uses to store the cache and as a result nginx tries to start before the required resource is mounted = error, nginx is not running.
I will specify OS - CentOS 7.1

Answer the question

In order to leave comments, you need to log in

1 answer(s)
P
panaceya, 2016-03-10
@panaceya

You can add something like this to the /etc/systemd/system/unit.d/nginx.conf file:
[Unit]
Requires=waagent
After=waagent
The solution is only if the systemd system.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question