Restart Document Server on Windows

IIS, Apache
Post Reply
digimip09
Posts: 8
Joined: Tue Nov 17, 2020 1:05 pm

Restart Document Server on Windows

Post by digimip09 » Tue Nov 17, 2020 1:22 pm

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 :)

Carl
Posts: 635
Joined: Thu Apr 12, 2018 10:00 am

Re: Restart Document Server on Windows

Post by Carl » Tue Nov 17, 2020 2:59 pm

Hello digimip09,

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

digimip09
Posts: 8
Joined: Tue Nov 17, 2020 1:05 pm

Re: Restart Document Server on Windows

Post by digimip09 » Tue Nov 17, 2020 4:39 pm

Thanks a lot Carl ! It worked :)

Post Reply