Hi,
I’m having trouble setting a parameter on opensearch.service.
I need to set TimeoutStartSec=120s, but using the command sudo systemctl edit opensearch.service fails to save the new value.
There are no errors when editing or saving, but the parameter isn’t actually saved. Rechecking the value, it remains the default. I also tried changing the editor, replacing nano with vim, but to no avail.
I also tried using sudo bash, but that didn’t work.
This is the procedure I followed
sudo systemctl edit opensearch.service
add
[Service]
TimeoutStartSec=120s # Adjust this to whatever you need
save
sudo systemctl daemon-reload
sudo systemctl restart opensearch.service
restart machine
Can you give me a suggestion to fix the problem? Thank you all for your time.