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-python2.7/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-python3.4/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-python3.5/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-python3.6/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-python3.7/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-python3.8/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"
}