this post was submitted on 26 Nov 2023
1 points (100.0% liked)

Homelab

371 readers
9 users here now

Rules

founded 1 year ago
MODERATORS
 

Theres a windows app that sometimes gets stuck and needs a restart on the server.

Is there any easy solution to use an android tablet as a command center with only 2 buttons. ?

I don't want to use RDP or similar connections. I'd rather have the server expose 2 buttons (maybe via an internal website?) that my tablet can just click, and voila app closed. This would also allow someone not tech savvy to close/restart it if needed.

Does something like this already exist? Or is there a blog about how to set up something like this?

top 4 comments
sorted by: hot top controversial new old
[–] ADB-UK@alien.top 2 points 11 months ago

You are talking about a manual watchdog timer system. There are low cost and free systems to do things like this - a search for network and application monitors will turn them up.

Its way better to try to address why the core program dies that patch around it this way but as that's not always easy (or cost effective if the code is out of maintenance) then just create a small program that checks if the core app is running and restart it if its not. This can be run from the system scheduler every few minutes.

If you have no way to tell the program has died (other than users shouting) then you could look to send an email to a mailbox that's monitored by a background program and restart when it gets one.

Another way is to create a simple web page that is hosted on a box and use that to trigger the reset.

[–] binaryhellstorm@alien.top 1 points 11 months ago

You could use Node-Red for the front end to run a Python script to issue a remote service restart commands either with a native library or by leveraging PSService from SysInternals.

[–] schklom@alien.top 1 points 11 months ago
[–] Still-Snow-3743@alien.top 1 points 11 months ago

Tasker can help you create tasks which basically run curl commands, and can be set up as buttons on the phone launcher.