Если не запускается сервис ecss-restfs на ОС AstraLinux, то необходимо удалить секцию picture в файле /usr/lib/ecss/ecss-restfs/conf/unit.json. Исходный файл:
Блок кода |
---|
{ "applications": { "audio": { "type": "python3.6", "user": "www-data", "path": "/usr/lib/ecss/ecss-restfs/python/", "module": "audio", "processes": { "max": 10, "spare": 4, "idle_timeout": 60 }, "working_directory": "/var/lib/ecss/restfs" }, "picture": { "type": "python3.6", "user": "www-data", "path": "/usr/lib/ecss/ecss-restfs/python/", "module": "picture", "processes": { "max": 2, "spare": 1, "idle_timeout": 60 }, "working_directory": "/var/lib/ecss/restfs" }, "dn_resolver": { "type": "python3.6", "user": "www-data", "path": "/usr/lib/ecss/ecss-restfs/python/", "module": "dn_resolver", "processes": { "max": 2, "spare": 1, "idle_timeout": 60 }, "working_directory": "/var/lib/ecss/restfs" }, "infobyphone": { "type": "python3.6", "user": "www-data", "path": "/usr/lib/ecss/ecss-restfs/python/", "module": "infobyphone", "processes": { "max": 2, "spare": 1, "idle_timeout": 60 }, "working_directory": "/var/lib/ecss/restfs", "environment": { "service": "none", "apikey": "" } } }, "listeners": { "127.70.0.1:9991": { "pass": "routes" } }, "routes": [ { "match": { "host": "audio", "method": [ "POST", "GET", "HEAD", "DELETE" ] }, "action": { "pass": "applications/audio" } }, { "match": { "host": "picture", "method": [ "GET" ] }, "action": { "pass": "applications/picture" } }, { "match": { "host": "infobyphone", "method": [ "GET" ] }, "action": { "pass": "applications/infobyphone" } }, { "match": { "host": "dn-resolver", "method": [ "POST" ] }, "action": { "pass": "applications/dn_resolver" } } ], "access_log": "/var/log/ecss/restfs/access-unit.log" } |
Файл после редактирования:
Блок кода |
---|
{
"applications": {
"audio": {
"type": "python3.6",
"user": "www-data",
"path": "/usr/lib/ecss/ecss-restfs/python/",
"module": "audio",
"processes": {
"max": 10,
"spare": 4,
"idle_timeout": 60
},
"working_directory": "/var/lib/ecss/restfs"
},
"dn_resolver": {
"type": "python3.6",
"user": "www-data",
"path": "/usr/lib/ecss/ecss-restfs/python/",
"module": "dn_resolver",
"processes": {
"max": 2,
"spare": 1,
"idle_timeout": 60
},
"working_directory": "/var/lib/ecss/restfs"
},
"infobyphone": {
"type": "python3.6",
"user": "www-data",
"path": "/usr/lib/ecss/ecss-restfs/python/",
"module": "infobyphone",
"processes": {
"max": 2,
"spare": 1,
"idle_timeout": 60
},
"working_directory": "/var/lib/ecss/restfs",
"environment": {
"service": "none",
"apikey": ""
}
}
},
"listeners": {
"127.70.0.1:9991": {
"pass": "routes"
}
},
"routes": [
{
"match": {
"host": "audio",
"method": [
"POST",
"GET",
"HEAD",
"DELETE"
]
},
"action": {
"pass": "applications/audio"
}
},
"action": {
"pass": "applications/picture"
}
},
{
"match": {
"host": "infobyphone",
"method": [
"GET"
]
},
"action": {
"pass": "applications/infobyphone"
}
},
{
"match": {
"host": "dn-resolver",
"method": [
"POST"
]
},
"action": {
"pass": "applications/dn_resolver"
}
}
],
"access_log": "/var/log/ecss/restfs/access-unit.log"
}
|