Giter VIP home page Giter VIP logo

systemd-manager's Introduction

Systemd Manager

Systemd Manager is a Gnome Shell Extension which allows you to start/stop systemd services via a menu in the status area in the top panel. You can preselect which services should be shown in the extension preferences dialog.

Screenshot

Install

Copy folder [email protected] into ~/.local/share/gnome-shell/extensions.

Gnome Shell Extensions

The easiest way to install this extension is via the official Gnome Shell Extensions resource page here.

Packages

Arch Linux: AUR package

Authorization

Done via a password prompt from the command pkexec of the polkit package. This command usually pops up a graphical password prompt.

Without Password Prompt

If you would like to be able to start services without getting prompted for a password, you need to configure a polkit policy.

Using pkexec (default)

The policy file org.freedesktop.policykit.pkexec.systemctl.policy allows the execution of systemctl [start|stop] without a password confirmation. Copy the file in your polkit policy folder (usually: /usr/share/polkit-1/actions).

Using systemctl

You can also choose to use systemctl natively and bypass a password prompt. To do this, add the policy file 10-service_status.rules to /etc/polkit-1/rules.d.

Feel free to change the wheel group noted in the file to any other group that you see fit.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/hardpixel/systemd-manager.

License

Systemd Manager is available as open source under the terms of the GPLv3

Credits

Fork of the Gnome Shell extension Services Systemd.

systemd-manager's People

Contributors

haringat avatar hashworks avatar jonian avatar lazarosgogos avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

systemd-manager's Issues

Systemd-manager in its own NixOS Package

Is your feature request related to a problem? Please describe.
Now that the extension has been removed from the gnome extensions, it has broken the update process in NixOS.

Describe the solution you'd like
I know this repository has nothing to do with NixOS, but I am wondering if you all would like to make a
a PR in Nixpkgs to make systemd-manager its own package in NixOS?

That might be a big ask, but I thought I would try.

This relates to this issue in Nixpkgs:

NixOS/nixpkgs#279638

Thanks so much!

@hashworks

@jonian

Gnome 45 is coming soon ...

Hello,

Many thanks for this extension, this is very useful to me. Consider you to port Systemd Manager to G.S 45 in a near future?

Thanks again for your work.

Regards

Add ability to manage .mount units

I'm using systemd to mount network mounts, for that I have to start/stop mnt-path.mount units. Currently, this isn't possible with the extension.

No indication of service being started

When a systemd service has a long-running ExecStartPre script, its toggle isn't being switched on, so it looks like the service failed to start.
Would be good to add some indication that a service is being started.

Tail the service logs easily with a button

Is your feature request related to a problem? Please describe.
I would like to quickly pull up a running log of a service

Describe the solution you'd like
A button next to each service that opens a terminal with a command like this journalctl --user -u <service> -b -e -f, specifically with -b meaning logs from this boot, and -e -f meaning follow from the end of the log like tail -f.

Describe alternatives you've considered
Opening the terminal and typing the command manually (inconvenient)

Additional context
N/A

[enhancement] Is it possible to keep systemd-manager's menu shown after toggling a service ?

After toggling a service, the menu is hidden.
Sometimes I have to toggle several services in a row, that makes me click again on the extension to show the menu again, before toggling the next service.
I think systemd-manager's menu should remain on screen after toggling a service (until the user closes explicitly the menu by hitting or clicking somewhere else on the screen).
And even when toggling a single service, IMO the menu should remain. I think it's reassuring to see the toggling applied (but maybe that's just me)

Something's gone wrong

When I try to add services, I get the following error message:

`The settings of extension [email protected] had an error:

TypeError: Gtk.StyleContext.add_provider_for_display is not a function

Stack trace:

_init@/home/abc/.local/share/gnome-shell/extensions/[email protected]/prefs.js:28:24
buildPrefsWidget@/home/abc/.local/share/gnome-shell/extensions/[email protected]/prefs.js:262:18
_init@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:207:40
OpenExtensionPrefsAsync/<@resource:///org/gnome/Shell/Extensions/js/extensionsService.js:122:28
asyncCallback@resource:///org/gnome/gjs/modules/core/overrides/Gio.js:115:22
run@resource:///org/gnome/Shell/Extensions/js/dbusService.js:177:20
main@resource:///org/gnome/Shell/Extensions/js/main.js:19:13
run@resource:///org/gnome/gjs/modules/script/package.js:206:19
start@resource:///org/gnome/gjs/modules/script/package.js:190:8
@/usr/share/gnome-shell/org.gnome.Shell.Extensions:1:17

`
System:
Manjaro Linux
Gnome Shell 3.38

Don't ask for password when the command is allowed by sudo

Hi! I'd like to suggest an improvement where the extensions don't ask for permission/password for commands that is already allowed by sudo.

I know there is a way to achieve that by pkexec and the policy file org.freedesktop.policykit.pkexec.systemctl.policy, but I think there is a couple of reasons to allow the same behaviour using sudo.

First is verbosity. The file used to config pkexec is a huge and verbose xml. Second is granularity. As far as I know, there is no way to specify which services is allowed to change without password.

The same behaviour can be achieved putting this small piece of code in /etc/sudoers.d/systemctl, for exemple. It's clear, concise and it has exactly the commands it's allowed.

username ALL=NOPASSWD: /usr/bin/systemctl start docker.service --system
username ALL=NOPASSWD: /usr/bin/systemctl stop docker.service --system
username ALL=NOPASSWD: /usr/bin/systemctl restart docker.service --system

Thank you for all the work done. I'm using this extension and it's great!

[Feature] Please add support for masking services

Is it possible to add support to mask and stop a service, instead of just stopping it ?

I sometimes mask the avahi-daemon service on some Wi-Fi networks, because I don't want any Wi-Fi printers popping up. Just stopping avahi-daemon is of no use, because it is automatically restarded. You need also to mask it.

It would be great if your extension would allow to mask and stop a service instead of just stopping it. Ideally this should be done on a per-service basis, allowing for each service to choose if toggling the switch just stops the service or also masks it.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.