0

i have a service, but after shutdown starts it finishes as if it's killed. I need it to last CUSTOM amount of time for it can make all the stuff and then shutdown after work is done. Is it possible to do that on Linux OSes?

I have this configuration of a service

[Unit]
Description=SeriveName setup

[Service]
Type=simple
Restart=always
StartLimitBurst=5
StartLimitIntervalSec=10
User=root
ExecStart=-/opt/myPath/SeriveName 
TimeoutSec=180

[Install]
WantedBy=multi-user.target

Can TimeoutSec option handle this if the service won't be finished?

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.