RSS Feed

My random notes about the stuff I've done

Maemo Service Handler

5 Comments
Posted by tuomas on January 27, 2007 at 12:55 pm

It’s convenient for a Maemo developer to have sshd and syslogd running on the device but on normal use they just use resources and wear out the flash.

I made a little Control Panel plugin with zuh‘s help for starting and stopping System V style init script actions. It uses invoke-rc.d for starting and stopping services and update-rc.d to add and remove services in system boot time actions.

It has only basic features implemented, i.e. it can start and stop services and add and remove them from startup routines.

TODO:

  • Speed up starting time by getting rid of fork+exec
  • Add infoprints about the success of execution commands
  • Sort services alphabetically
  • Add option to hide “built-in” services

Maemo Service Handler CPA

Be aware that this includes a suid root binary for executing the System V scripts!

The plugin UI is written with C++ so you need to have extras repository on your catalogue list for gtkmm libraries:

Web address: http://repository.maemo.org/extras/
Distribution: bora
Components: free non-free

The plugin can be installed from my maemo repository:

Web address: http://tuomas.kulve.fi/debian
Distribution: bora
Components: maemo

Filed under Maemo, Projects
You can skip to the end and leave a comment. Pinging is currently not allowed.

5 Comments

  • On January 31, 2007 at 11:05 am Fred said

    Hi Tuomas,

    This is a great helper !
    I installed it flawlessly a few seconds ago and it does what you said !
    Very nice,
    Thank you
    Fred

    Reply

  • On July 1, 2007 at 4:57 pm Austin said

    This is a great idea but has a problem in how it determines the priority order for starting scripts (maybe a problem with update-rc.d). It appears to always use a priority of 20 for all scripts. So if you simply deselect start on boot and then reselect it for a critical service, then your device will be unbootable.

    Reply

  • On July 1, 2007 at 6:05 pm tuomas said

    It uses “defaults”, so yes, it can break things. You should only use it for non-critical things like ssh and syslog mentioned in the post.

    Reply

  • On January 25, 2008 at 8:57 pm Nick said

    Could you create a version for ITOS2008?

    Reply

  • On January 25, 2008 at 9:16 pm tuomas said

    I should. But the service handler should be improved a bit and currently I don’t have time for it..

    Reply

Leave a Reply

Your email address will not be published. Required fields are marked *

*

* Copy this password:

* Type or paste password here:

1,233 Spam Comments Blocked so far by Spam Free Wordpress

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>