You are not logged in.

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

Trilby
Forum Moderator
From: Massachusetts, USA
Registered: 2011-11-29
Posts: 14,814
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.


InterrobangSlider
• How's my coding? See this page.
• How's my moderating? Feel free to email any concerns, complaints, or objections.

Offline

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

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,810
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

Offline

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

Xyne
Moderator/TU
Registered: 2008-08-03
Posts: 5,810
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*

Offline

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

graysky
Member
From: The worse toilet in Scotland
Registered: 2008-12-01
Posts: 8,825
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
Moderator/TU
Registered: 2008-08-03
Posts: 5,810
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)

Offline

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

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

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
Moderator/TU
Registered: 2008-08-03
Posts: 5,810
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.

Offline

Board footer

Powered by FluxBB