Sample Header Ad - 728x90

Service takes more than a minute to close

0 votes
1 answer
683 views
I have a Linux based device which is running certain services on boot-up, however one of them seems to be taking over a minute to close as I run adb shell shutdown -h now command. Is there a way to tell what's causing this extra delay while the service is being shut down? The following is a part of the daemon file that gets invoked as service are getting shut down...
start-stop-daemon -K -n /usr/bin/service
I see the following in logs
A stop job is running for service (1min 8s / 1min 15s)
A stop job is running for service (1min 11s / 1min 15s)
A stop job is running for service (1min 15s / 1min 51s)
...
Asked by xyf (141 rep)
May 18, 2022, 09:59 PM
Last activity: May 19, 2022, 03:09 AM