Page 1 of 2 12 LastLast
Results 1 to 10 of 19

Thread: Services-admin is gone... introducing ServiceManager

  1. #1
    Join Date
    Oct 2005
    Location
    Padova (Italy)
    Beans
    321
    Distro
    Kubuntu

    Services-admin is gone... introducing ServiceManager

    Upgrading to Karmic brought lot of new stuff to our desktop, but unfortunately also left something behind...

    One thing that bugged me is that I was missing a mean (like service-admin) to manage services through the GUI and since I wanted to play a bit with glade+gtkpython and, I spent a couple of days to make an upstart graphical front-end "ServiceManager" which can be found at this link:

    NEW! servicemanager_0.3.deb



    The program lets you list, stop start and restart all the services and (if available) provides a description of them. SysV services can also be enabled/disabled at boot.
    After selecting a service possible actions on it will be unlocked on the big buttons on the top bar. The checkbox on the "enabled" column can be used to choose if a service should be autostarted at boot time.
    Since at the present time there's no mean in upstart to control if a service should be enabled or not, and considered that services already migrated to upstart are mostly system-critical I've decided not to implement a way to disable upstart services for now.

    The deb can be installed on all architecture and places an homonym icon under the administration menu. For the curious the program is made of two files which can be found under /opt/servicemanager: "mainwindow.glade" is a glade3 project and "servicemanager.py" is the program itself.

    If I'll see some interest I can try to extend functionality (as far as the underlying tools like service, initctl etc. allow). Let me know what you think!

    BIG DISCLAIMER: It's my first work on python, it's something made just to suite my needs, it's simple and stupid, but if it fills an hole I'm happy to share.

    For references on the problem see:
    https://bugs.launchpad.net/ubuntu/+s...ls/+bug/433701 (outdated version posted there)
    http://ubuntuforums.org/showthread.php?t=1294610
    http://ubuntuforums.org/showthread.php?t=1319122

    I've leeched some ideas from Stebalien's program (ref: http://gtk-apps.org/content/show.php?content=114727) which was complementary to my 0.1 version, my intention is to deliver both start-on-boot and live stop/start/restart control in one tool.

    Other than this work and the one from Stebalien I've just mentioned I'm not aware of other efforts to bring such a functionality to Karmic, if you do please tell me.
    Attached Images Attached Images
    Last edited by yota; May 12th, 2012 at 06:01 PM. Reason: updated urls

  2. #2
    Join Date
    Jul 2009
    Beans
    2

    Re: Services-admin is gone... introducing ServiceManager

    Very nice, Works great!! I appreciate it.

  3. #3
    Join Date
    Jan 2008
    Beans
    7

    Re: Services-admin is gone... introducing ServiceManager

    Well, I'd rather you helped us making services-admin rock so that we can bring it back in Lucid. It would benefit to all Linux distributions (and FreeBSD), since it's part of GNOME.

    services-admin is using PolicyKit, which allows for a much nicer way of managing authorizations than a simple gksudo call, and is now the standard way on Linux. That will require you more work, which could have been spent in improving existing tools.

    Good luck, though!

  4. #4
    Join Date
    Oct 2005
    Location
    Padova (Italy)
    Beans
    321
    Distro
    Kubuntu

    Re: Services-admin is gone... introducing ServiceManager

    Hi nalimilan,

    yours are good points, really, but as I said this was something I did just to experiment a bit of python.
    It was not something I made with a plan in mind, I just saw that a feature was missing (without even knowing it was part of gnome) and I tried to create something to replace it on my environment.

    Once finished it didn't seemed that bad after all and I thought it was worth sharing.
    Maybe you can look at it as a quick and dirty replacement for services-admin until a new big-and-better version is ready, which has the non-trivial plus of being available today.

    Anyway now that you make me reason a bit on the matter, in effect there are some aspects in which I didn't like services-admin that much.
    For instance there was no live start/stop/restart, just the checkbox to select if the service has to be started at boot and moreover the service list and descriptions seemed hard-coded in the program rather that dynamically gathered (so that not all services were listed).

    Maybe, better if someone agrees, I'd be glad to forward those observation to the services-admin developers... any pointers?

  5. #5
    Join Date
    Jan 2008
    Beans
    7

    Re: Services-admin is gone... introducing ServiceManager

    Yeah, I understand your intentions, no problem with that, that can always be useful. I was just replying to your proposal on the services-admin bug report.

    I perfectly see the limitations in services-admin you complain about, but we're a pair of developers working on their free time, so we don't lack of ideas to improve it, but of time. That's why I was talking about work duplication.

    At least, I'd like to get rid of the static list of services by the next release. But the problem is that services we don't know about beforehand won't have they descriptions translated, and I can't see any solution to this.

  6. #6
    Join Date
    Oct 2005
    Location
    Padova (Italy)
    Beans
    321
    Distro
    Kubuntu

    Re: Services-admin is gone... introducing ServiceManager

    Mhhh... I was asking pointers to services-admin developers without realizing I was already speaking to one of them! How insigthful am I

    Speaking about descriptions translations, aren't they a way to heavy burden to be carried on by the administration tool?
    IMHO the descriptions (and their translations) should be contained within the upstart job definitions, like:
    Code:
    # mountall - Mount filesystems on boot
    #
    # This helper mounts filesystems in the correct order as the devices
    # and mountpoints become available.
    
    description	"Mount filesystems on boot"
    description[it] "Monta i filesystem all'avvio del sistema"
    description[es] ...
    ...
    This is exactly what happens with .desktop files and insures that also custom programs installed by the user (also if out of official repositories, like skype and acrobat reader) get correcly listed in the menu with their translation (where available).

    Since the service administration tool can't possibly be aware of every single service existing in the world and contain within itself all translations probably shouldn't try to handle the problem all on its own.

    This is especially true if the development resources are limited: better focus on problems that can be solved easily than on ones which are unsolvable.

    Anyway if some help is needed in the development of services-admin for Lucid I'd be glad to contribute (obviously if I'm able), if that's welcome, how can I?

  7. #7
    Join Date
    Jan 2008
    Beans
    7

    Re: Services-admin is gone... introducing ServiceManager

    Sure, translations would ideally be carried by the scripts themselves, but ATM there's no way to do so. I had already thought of a .desktop file-like translation, but that would make the scripts really hard to read and edit manually. Maybe we could actually ship a .desktop file in some place with all the data needed (even an icon if wanted). That is a request that should be reported to the Upstart developer, e.g. via a bug in Launchpad.

    Glad to hear you want to help us! It depends on whether you prefer C or perl coding (I know, it's choosing between two evils :-p). services-admin is in C and you can get it using
    git clone git://git.gnome.org/gnome-system-tools
    It's in src/services/.
    (If you need documentation about git, see http://live.gnome.org/Git/Developers)

    But services-admin mostly needs a nice support for Upstart jobs, which is managed on the privileged backend side, the system-tools-backends. Get them using
    git clone git://anongit.freedesktop.org/system-tools-backends
    the relevant code is in Init/. It's working with "platforms", meaning that they behave completely differently depending on the distribution. For Debian/Ubuntu, we're now using the "upstart" scheme, which currently is only traditional SystemV support plus detection of Upstart jobs so that we don't show them at all (since we don't know how to manage them).

    But it may be better to discuss that on our list, to avoid cluttering your thread here. It's at
    http://mail.gnome.org/mailman/listin...tem-tools-list

  8. #8
    Join Date
    Oct 2005
    Location
    Padova (Italy)
    Beans
    321
    Distro
    Kubuntu

    Re: Services-admin is gone... introducing ServiceManager

    Updated to version 0.3, the news are:
    • Fixed icon on KDE
    • The program can be launched from CLI for debug (verbose messages on standard output)
    • Nicer, hopefully more readable, code
    • Implemented sort of plugin mechanics to make easier porting to different platform

    There had been more than 100 downloads in 2 weeks, not that much, but still some interest has been shown even if here just one user took some time to thank.

    Nonetheless I guess that no complain means that the tool works...

  9. #9
    Join Date
    Dec 2005
    Location
    Brisbane, Australia
    Beans
    321
    Distro
    Ubuntu Karmic Koala (testing)

    Re: Services-admin is gone... introducing ServiceManager

    The link for version 0.3 is incorrect, by the way.
    Any chance of packaging it on a PPA so that we could get instantly notified about new releases?

  10. #10
    Join Date
    Dec 2009
    Beans
    4

    Re: Services-admin is gone... introducing ServiceManager

    The switch to Upstart is one thing, the lack of a management utility is quite another. Your program worked fine, and solved my immediate problem.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •