service.running: fix for issue 5894

Fix for #5894.