Tuomas Kulve
Line - Extra Long
 
white
line     line
line line
vline

2010 2009 2008 2007 2006 Site Admin | Log in | RSS

January 27, 2007

Maemo Service Handler

Filed under: Maemo, Projects — tuomas @ 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

5 Comments »

  1. 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

    Comment by Fred — January 31, 2007 @ 11:05 am

  2. 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.

    Comment by Austin — July 1, 2007 @ 4:57 pm

  3. 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.

    Comment by tuomas — July 1, 2007 @ 6:05 pm

  4. Could you create a version for ITOS2008?

    Comment by Nick — January 25, 2008 @ 8:57 pm

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

    Comment by tuomas — January 25, 2008 @ 9:16 pm

RSS feed for comments on this post.

Leave a comment

*
To prove you're a person (not a spam script), type the answer to the math equation shown in the picture. Click on the picture to hear an audio file of the equation.
Click to hear an audio file of the anti-spam equation


vline
vline vline
line line
 
 
Tuomas Kulve tuomas#kulve.fi