Packages: run non-privileged processes under "unit" user.

This commit is contained in:
Andrei Belov
2020-12-17 14:30:18 +03:00
parent a5fa9673d9
commit 53d847615b
29 changed files with 58 additions and 30 deletions

View File

@@ -2,7 +2,6 @@
"applications": {
"example_go": {
"type": "external",
"user": "nobody",
"executable": "/tmp/go-app"
}
},

View File

@@ -2,7 +2,6 @@
"applications": {
"example_perl": {
"type": "perl",
"user": "nobody",
"processes": 1,
"working_directory": "/usr/share/doc/unit-perl/examples/perl-app",
"script": "/usr/share/doc/unit-perl/examples/perl-app/index.pl"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_php": {
"type": "php",
"user": "nobody",
"processes": 2,
"root": "/usr/share/doc/unit-php/examples/phpinfo-app",
"index": "index.php"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_python": {
"type": "python",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python/examples/python-app",
"module": "wsgi"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_python": {
"type": "python 2.7",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python27/examples/python-app",
"module": "wsgi"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_python": {
"type": "python 3.4",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python34/examples/python-app",
"module": "wsgi"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_python": {
"type": "python 3.5",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python35/examples/python-app",
"module": "wsgi"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_python": {
"type": "python 3.6",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python36/examples/python-app",
"module": "wsgi"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_python": {
"type": "python 3.7",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python37/examples/python-app",
"module": "wsgi"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_python": {
"type": "python 3.8",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python38/examples/python-app",
"module": "wsgi"

View File

@@ -2,7 +2,6 @@
"applications": {
"example_ruby": {
"type": "ruby",
"user": "nobody",
"processes": 2,
"script": "/usr/share/doc/unit-ruby/examples/ruby-app.ru"
}

View File

@@ -2,7 +2,6 @@
"applications": {
"example_php": {
"type": "php",
"user": "nobody",
"processes": 2,
"root": "/usr/share/doc/unit-php/examples/phpinfo-app",
"index": "index.php"
@@ -10,7 +9,6 @@
"example_python": {
"type": "python",
"user": "nobody",
"processes": 2,
"path": "/usr/share/doc/unit-python/examples/python-app",
"module": "wsgi"
@@ -18,13 +16,11 @@
"example_go": {
"type": "external",
"user": "nobody",
"executable": "/tmp/go-app"
},
"example_perl": {
"type": "perl",
"user": "nobody",
"processes": 1,
"working_directory": "/usr/share/doc/unit-perl/examples/perl-app",
"script": "/usr/share/doc/unit-perl/examples/perl-app/index.pl"