Under review

How to restart Session Manager?

adam.connor 2 months ago updated by routeserver 2 months ago 4

Is there a way to restart the session manager in on-prem linux that does not involve rebooting the server?

This is driving me nuts

*yes I'm aware that this sounds very much like a Microsoft joke-
What's the biggest problem with our software? 
It crashes too much
Microsoft Engineer 'we fixed it, we made it reboot faster'

On CentOS, I just run:

$ service screenconnect restart

It takes quite awhile but it does come back to life (usually). I'm running 20.2 release. It's still quite buggy. Leaving it around for any left behind systems that don't get turned on frequently to see the reinstall command, to point to the Windows server that I setup a few months ago.

Does anyone know a workaround to make this happen automatically? We need a script that automatically checks the session manager whether it is still working. And if it freezes, the service would have to be restarted automatically.

That doesn't solve the fundamental problem that this company isn't doing its job and simply fixing the bug. But after months of waiting and restarting every day, I am happy about every possibility of simplification.

on Ubuntu this is 

sudo systemctl restart screenconnect

Guessing you could add a cron job for this, may investigate later. Good idea to monitor the Session Manager service

I had a cron job before to restart at 2 a.m.

But it crashes during the day regardless of whether I restarted the service at night or not. So it needs a more intelligent script with an active trigger.