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?

  • binaryhellstorm@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year 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.

  • ADB-UK@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year 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.

  • Still-Snow-3743@alien.topB
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

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