diff --git a/README.md b/README.md --- a/README.md +++ b/README.md @@ -23,7 +23,7 @@ Nginx is installed through the [nginx-full Debian package](https://wiki.debian.org/Nginx). SSL is ready if needed at the container level (we expose ports 80 and 443). -Services are managed by [runit](http://smarden.org/runit/) in `/etc/service` directory. +Services are managed by [runit](http://smarden.org/runit/) in `/var/service` directory. ## How to use it @@ -44,7 +44,7 @@ FROM nasqueron/docker-nginx-php7-fpm # Debian commands to deploy your application code - # If you need other processes, add a /etc/service//run file + # If you need other processes, add a /var/service//run file That's it. diff --git a/files/usr/local/sbin/runsvdir-init b/files/usr/local/sbin/runsvdir-init --- a/files/usr/local/sbin/runsvdir-init +++ b/files/usr/local/sbin/runsvdir-init @@ -1,2 +1,2 @@ #!/bin/sh -/usr/bin/runsvdir -P /etc/service +/usr/bin/runsvdir -P /var/service diff --git a/files/etc/service/nginx/run b/files/var/service/nginx/run rename from files/etc/service/nginx/run rename to files/var/service/nginx/run diff --git a/files/etc/service/php-fpm/run b/files/var/service/php-fpm/run rename from files/etc/service/php-fpm/run rename to files/var/service/php-fpm/run diff --git a/novolume/files/usr/local/sbin/runsvdir-init b/novolume/files/usr/local/sbin/runsvdir-init --- a/novolume/files/usr/local/sbin/runsvdir-init +++ b/novolume/files/usr/local/sbin/runsvdir-init @@ -1,2 +1,2 @@ #!/bin/sh -/usr/bin/runsvdir -P /etc/service +/usr/bin/runsvdir -P /var/service diff --git a/novolume/files/etc/service/nginx/run b/novolume/files/var/service/nginx/run rename from novolume/files/etc/service/nginx/run rename to novolume/files/var/service/nginx/run diff --git a/novolume/files/etc/service/php-fpm/run b/novolume/files/var/service/php-fpm/run rename from novolume/files/etc/service/php-fpm/run rename to novolume/files/var/service/php-fpm/run