Page 1 of 1

Restart Document Server on Windows

Posted: Tue Nov 17, 2020 1:22 pm
by digimip09
Hello,

I have installed OnlyOffice Document Server (OnlyOffice Docs) and run Java Example with these instructions : https://api.onlyoffice.com/editors/example/java.

The code is working fine. But for the moment in the Java code, the property "files.docservice.secret" in the file "settings.properties" is empty, and I would like to give a value to it ("secret" for example). According to the documentation (https://api.onlyoffice.com/editors/signature/), I need to modify the Docuement Server file "\onlyOffice\DocumentServer\config\local.json" this way :

"token": {
"enable": {
"request": {
"inbox": true,
"outbox": true
},
"browser": true
},
"inbox": {
"header": "Authorization"
},
"outbox": {
"header": "Authorization"
}
}

But then, I have to restart Document Server services with this command but it doesn't work : supervisorctl restart all

Is there another way to restart Document Server on Windows ? Or did I do something wrong ?

Thanks in advance for your answers :)

Re: Restart Document Server on Windows

Posted: Tue Nov 17, 2020 2:59 pm
by Carl
Hello digimip09,

On Windows you need to restart all ONLYOFFICE DocumentServer services in Windows Services (press Win+R => services.msc).

Re: Restart Document Server on Windows

Posted: Tue Nov 17, 2020 4:39 pm
by digimip09
Thanks a lot Carl ! It worked :)