You are not logged in.

#26 2013-05-11 00:52:33

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 30,330
Website

Re: serman: simple ncurses-based systemd service file manager

Oh **&*& I could have sworn I tried that.  Enter is what I was looking for.


"UNIX is simple and coherent" - Dennis Ritchie; "GNU's Not Unix" - Richard Stallman

Offline

#27 2013-05-11 01:06:16

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: serman: simple ncurses-based systemd service file manager

As a regular user I still see the basic status output in F2 but not the log messages, which only appear if I run it as root.

I still haven't touched this since the first session that spawned it and I blew my current coding quota on the XyneHTTPServer rewrite. When I have more time, I still plan to clean it up and make things like keybindings, symbols and colors configurable. The F1/F2 windows were thrown in as a last-minute usability hack and need to be properly integrated too.

I'm glad that you like it nevertheless. It was a fun way to learn the basics of (Python) ncurses and I like the little Unicode symbols. big_smile


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#28 2014-05-11 04:51:21

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: serman: simple ncurses-based systemd service file manager

*blows away dust*
*coughs*

I don't know why but I ended up tinkering with the serman2 code today. New stuff:

  • Parameterized services: you can now control services such as netctl@home.service, getty@tty2.service, etc. Currently enabled/running services will appear in the list. Attempting to toggle the unparameterized service will prompt for the parameter and add it to the list.

  • fixed trivial drawing bug (official docs for addch are wrong?)

  • added help message to status bar

  • failed services now display correct status

So, um, yeah.
*blows party horn*
*heads off to do something actually useful*


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#29 2014-05-11 06:54:36

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,643
Website

Re: serman: simple ncurses-based systemd service file manager

Very nice as usual.  Please edit your first post correcting the link to the software.

http://xyne.archlinux.ca/scripts/systemd --> http://xyne.archlinux.ca/projects/serman

A few "bugs":

  • You might consider changing the F1 for help.  For me, hitting F1 (xfce4-terminal) brings up the help for the terminal.

  • Hitting F2 to see status shows a black screen.

Last edited by graysky (2014-05-11 06:58:57)


CPU-optimized Linux-ck packages @ Repo-ck  • AUR packagesZsh and other configs

Offline

#30 2014-05-11 15:44:58

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: serman: simple ncurses-based systemd service file manager

@graysky
The link has been updated.

F1 is a common help key in curses applications. Does it work as expected with other applications such as htop?

As stated above, I would like to make all key bindings, colors, keywords and symbols configurable, but I would need to refactor the code for that (it's still the result of a single-session hackathon). Given my current priorities and the lack of users this will not happen any time soon.

F2 is blank if you have not issued any commands (it only displays collected output). Go to the status menu, select some services with the space bar, then hit enter. You should now see some output in the F2 window. I'll probably add a default message explaining this when there is no output.

Thanks for the feedback.


edit
I have added a default message and some help text to the text display window.

Last edited by Xyne (2014-05-11 16:10:04)


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

#31 2016-10-19 23:26:40

DocMAX
Member
Registered: 2016-09-16
Posts: 6

Re: serman: simple ncurses-based systemd service file manager

serman2 ist cool! But it doesnt refresh! Can you make it?

Offline

#32 2016-10-23 03:28:56

Xyne
Administrator/PM
Registered: 2008-08-03
Posts: 6,965
Website

Re: serman: simple ncurses-based systemd service file manager

DocMAX wrote:

serman2 ist cool! But it doesnt refresh! Can you make it?

Thanks. I have no time right now, but I have added it to my todo list so that I remember later. I will post an update here when I get to it.


My Arch Linux StuffForum EtiquetteCommunity Ethos - Arch is not for everyone

Offline

Board footer

Powered by FluxBB