cbowdon / daemons.el

An Emacs UI for managing init system services
GNU General Public License v3.0
101 stars 12 forks source link

Feature requests: enable/disable services and others #12

Closed yyr closed 5 years ago

yyr commented 6 years ago

I only use debian based machines as of now, so i have systemd installed, the following features requests may only pertain to systemd.

If I need any other I will add here.

Thank you.

cbowdon commented 6 years ago

These are some very good ideas and I'd like to see them all in daemons.el one day. Happily, some of this is already available!

You can currently sort services by status by clicking the column header or M-x tabulated-list-sort with the cursor in a given column. This is part of the standard tabulated-list functionality. Perhaps it would be nice bind this to a key in daemons-mode though.

For password caching, try M-x customize-group password, which is what I think tramp is using.

You can currently set the custom variable daemons-always-sudo to achieve the super user behaviour. In the new version (the buffer-per-host branch just merged to master) you can also start daemons by navigating to a super user context with tramp:

M-x cd /sudo::
M-x daemons

In this scenario the buffer is named *daemons for root@hostname*, which isn't quite as good as a banner warning but at least gives you something to check.

Enabling/disabling services should be possible just by adding bindings to daemons-mode-map and creating functions daemons-enable and daemons-enable-at-point. The commands alist would then need to be updated for each submodule.

yyr commented 6 years ago

You can currently sort services by status by clicking the column header or M-x tabulated-list-sort with the cursor in a given column.

That was my first guess, but then I clicked header Enabled button with mouse.. and I see <header-line> <header-line> <mouse-2> is undefined in the minibuffer. so sorting function hasn't been bound to the mouse.

and thank you for letting me know the workaround, I will use them for now.

Thanks

cbowdon commented 6 years ago

Shouldn't a primary click be mouse-1 not mouse-2? It is for me. Perhaps it's a mouse configuration thing.

cbowdon commented 5 years ago

I've finally got round to implementing enable/disable for systemd, so I think your three feature requests are now complete! I'm closing the ticket, feel free to reopen if you have issues.