Packages: run non-privileged processes under "unit" user.
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
"applications": {
|
||||
"example_go": {
|
||||
"type": "external",
|
||||
"user": "nobody",
|
||||
"executable": "/tmp/go-app"
|
||||
}
|
||||
},
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"applications": {
|
||||
"example_python": {
|
||||
"type": "python",
|
||||
"user": "nobody",
|
||||
"processes": 2,
|
||||
"path": "/usr/share/doc/unit-python/examples/python-app",
|
||||
"module": "wsgi"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
"applications": {
|
||||
"example_ruby": {
|
||||
"type": "ruby",
|
||||
"user": "nobody",
|
||||
"processes": 2,
|
||||
"script": "/usr/share/doc/unit-ruby/examples/ruby-app.ru"
|
||||
}
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user