question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow users to restart a service

See original GitHub issue

I am and will be enabling users to run Bokeh, Dash, Flask, Panel, Streamlit and Voila apps on Jupyter Hub and Binder.

Those apps are a part of the explorative environment and users would expect to be able to update the underlying code and experience the updated apps. In my case the users might not even update the code them selves but the app code would be updated by other users/ a system team in one or more shared folders that are mounted.

Currently I don’t see any way of restarting those services. I would like a feature to easily restart a service.

Additional Context

Examples of servers are

I have a similar request for jupyter-panel-proxy that it should provide functionality to restart. But I also created a feature request here as I believe the use case and request is more general. See https://github.com/holoviz/jupyter-panel-proxy/issues/14

Issue Analytics

  • State:open
  • Created 2 years ago
  • Reactions:1
  • Comments:5 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
bollwyvlcommented, Dec 16, 2021

Nah, a couple restart policies (especially if we don’t have to think them up) still seem quite useful… But sometimes it will make sense to want to drive the bus manually, especially (again) if we don’t have to think up a novel ui.

1reaction
bollwyvlcommented, Dec 16, 2021

I think dedicated restarting/status/logging is worth pursuing. Over on jupyter(lab)-lsp, we’ve had similar concerns, especially for language servers that have file-based configurations someone may wish to update interactively… or that get wedged, and need hard restarts.

While we previously had a dependency on jupyter-server-proxy, we ended up needing more bells and whistles, and have been handling our own stuff for a while. We have a stoppable server session concept… but haven’t actually ended up exposing it to users.

Perhaps we could consider some way of bringing some parts of the codebase back together, as a common upstream dependency, for example:

  • in python
    • service status/stop handlers
    • logging handlers
  • in (retro)lab
    • a streaming/filtered log viewer
      • text in xtermjs
      • structured logs in datagrid
    • “Running” UIs (with stop, etc)

ideally, these wouldn’t specify how the processes actually work: we’re using a mishmash of stuff (especially on windows), and might end up having to do some more with e.g. anyio

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Allow Non-Admin Users to Start/Stop Windows Service?
Using the SubInACL to Allow a User to Start/Stop/Restart Service · In the elevated command prompt, go to the directory containing the tool:...
Read more >
Grant users rights to manage services - Windows Server
By default, only members of the Administrators group can start, stop, pause, resume, or restart a service. This article describes methods that ...
Read more >
Windows: Give user allow to restart services. - martinsblog.dk
Windows: Give user allow to restart services. · Select Start, select Run, type regedit in the Open box, and then click OK. ·...
Read more >
Persistent way to allow a user to restart a service - Server Fault
Launch GPMC.msc on the computer · Edit an existing GPO, or create a new, that applies to the computer in question · Expand...
Read more >
Allow standard users to execute script to restart a service on a ...
You can write a script and create a new (e.g. service account) that has the rights to do the restart. you encrypt the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found