2022-02-02 17:07:16 +01:00
|
|
|
{
|
|
|
|
"server": {
|
|
|
|
"listen": "0.0.0.0",
|
2022-03-15 01:36:47 +01:00
|
|
|
"port": 3000
|
2022-02-02 17:07:16 +01:00
|
|
|
},
|
|
|
|
"log": {
|
2022-03-15 01:36:47 +01:00
|
|
|
"level": "debug",
|
|
|
|
"timestamp": "DD.MM.YYYY HH:mm:ss:SS"
|
2022-02-02 17:07:16 +01:00
|
|
|
},
|
|
|
|
"api": [
|
|
|
|
{
|
2022-04-06 15:20:08 +02:00
|
|
|
"url": "/watch",
|
2022-03-18 13:26:51 +01:00
|
|
|
"method": "get",
|
2022-04-06 15:20:08 +02:00
|
|
|
"command": "watch",
|
2022-02-02 17:07:16 +01:00
|
|
|
"args": [
|
2022-04-06 15:20:08 +02:00
|
|
|
"-n",
|
|
|
|
"3",
|
|
|
|
"ls"
|
2022-02-02 17:07:16 +01:00
|
|
|
],
|
2022-03-18 13:56:19 +01:00
|
|
|
"options": {
|
|
|
|
"detach": true,
|
2022-04-06 15:20:08 +02:00
|
|
|
"unique": "restart",
|
|
|
|
"timeout": 10000
|
2022-03-18 13:56:19 +01:00
|
|
|
}
|
2022-03-17 16:51:36 +01:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"url": "/uptime",
|
2022-03-18 13:26:51 +01:00
|
|
|
"method": "get",
|
2022-03-17 16:51:36 +01:00
|
|
|
"command": "uptime",
|
2022-03-18 13:56:19 +01:00
|
|
|
"args": []
|
2022-03-18 14:51:01 +01:00
|
|
|
},
|
|
|
|
{
|
2022-03-18 16:05:29 +01:00
|
|
|
"url": "/systemctl/example",
|
2022-03-18 14:51:01 +01:00
|
|
|
"method": "get",
|
|
|
|
"command": "systemctl",
|
|
|
|
"args": [
|
|
|
|
"is-active",
|
2022-03-18 16:05:29 +01:00
|
|
|
"example"
|
2022-03-18 14:51:01 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-03-18 16:05:29 +01:00
|
|
|
"url": "/systemctl/example/start",
|
2022-03-18 14:51:01 +01:00
|
|
|
"method": "post",
|
|
|
|
"command": "systemctl",
|
|
|
|
"args": [
|
|
|
|
"start",
|
2022-03-18 16:05:29 +01:00
|
|
|
"example"
|
2022-03-18 14:51:01 +01:00
|
|
|
]
|
|
|
|
},
|
|
|
|
{
|
2022-03-18 16:05:29 +01:00
|
|
|
"url": "/systemctl/example/stop",
|
2022-03-18 14:51:01 +01:00
|
|
|
"method": "post",
|
|
|
|
"command": "systemctl",
|
|
|
|
"args": [
|
|
|
|
"stop",
|
2022-03-18 16:05:29 +01:00
|
|
|
"example"
|
2022-03-18 14:51:01 +01:00
|
|
|
]
|
2022-02-02 17:07:16 +01:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|