-
Notifications
You must be signed in to change notification settings - Fork 353
Closed
Description
sudo curl --unix-socket /var/run/control.unit.sock http://localhost/
{
"listeners": {
"*:8300": {
"application": "hello"
}
},
"applications": {
"hello": {
"type": "python",
"workers": 2,
"module": "wsgi",
"user": "ubuntu",
"group": "ubuntu",
"path": "/home/ubuntu/unit/hello"
}
}
}
After restarting with sudo systemctl restart unitd
:-
sudo curl --unix-socket /var/run/control.unit.sock http://localhost/
{
"listeners": {},
"applications": {}
}
So I have to add it again:-
sudo curl -X PUT -d @hello.json --unix-socket /var/run/control.unit.sock http://localhost/
This is on Ubuntu Xenial and unit install through apt.
apt show unit
Package: unit
Version: 0.1-1~xenial
Priority: extra
Section: admin
Maintainer: Andrei Belov <defan@nginx.com>
Installed-Size: 504 kB
Depends: lsb-base, curl, libc6 (>= 2.15), libpython2.7 (>= 2.7), libphp-embed
Homepage: https://www.nginx.com
Download-Size: 128 kB
APT-Manual-Installed: yes
APT-Sources: http://nginx.org/packages/mainline/ubuntu xenial/nginx amd64 Packages
Metadata
Metadata
Assignees
Labels
No labels