diff --git a/8.0-swoole-nginx-prod/supervisor.conf b/8.0-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.0-swoole-nginx-prod/supervisor.conf +++ b/8.0-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.0-swoole-nginx/supervisor.conf b/8.0-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.0-swoole-nginx/supervisor.conf +++ b/8.0-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.1-swoole-nginx-prod/supervisor.conf b/8.1-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.1-swoole-nginx-prod/supervisor.conf +++ b/8.1-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.1-swoole-nginx/supervisor.conf b/8.1-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.1-swoole-nginx/supervisor.conf +++ b/8.1-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.2-swoole-nginx-prod/supervisor.conf b/8.2-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.2-swoole-nginx-prod/supervisor.conf +++ b/8.2-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.2-swoole-nginx/supervisor.conf b/8.2-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.2-swoole-nginx/supervisor.conf +++ b/8.2-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.3-swoole-nginx-prod/supervisor.conf b/8.3-swoole-nginx-prod/supervisor.conf index e27a1e7..312fe84 100644 --- a/8.3-swoole-nginx-prod/supervisor.conf +++ b/8.3-swoole-nginx-prod/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole +command = su-exec kool php artisan octane:start --server=swoole stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/8.3-swoole-nginx/supervisor.conf b/8.3-swoole-nginx/supervisor.conf index 230e25e..b5cdc25 100644 --- a/8.3-swoole-nginx/supervisor.conf +++ b/8.3-swoole-nginx/supervisor.conf @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole --watch +command = su-exec kool php artisan octane:start --server=swoole --watch stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout diff --git a/template/supervisor-conf.blade.php b/template/supervisor-conf.blade.php index 8aafff7..dc14f5d 100644 --- a/template/supervisor-conf.blade.php +++ b/template/supervisor-conf.blade.php @@ -1,12 +1,12 @@ [program:nginx] -depends_on = php-fpm +depends_on = octane command = nginx -g "daemon off;" stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout [program:octane] -command = php artisan octane:start --server=swoole{!! $prod ? '' : ' --watch' !!} +command = su-exec kool php artisan octane:start --server=swoole{!! $prod ? '' : ' --watch' !!} stopasgroup = true stderr_logfile = /dev/stderr stdout_logfile = /dev/stdout