Accueil  Forums
Softs

Tech
TSM 0.1par le mercredi 25 septembre 2002
Les fichiers de cet article
TSM 0.1.dmg
Download Disk Image of TSM 0.1
(PNG)
What is Tynsoe Services Manager ?

First of all, this is my first real application, in fact, this is an AppleScript Studio application, but that’s almost a "real application".

TSM is a tool to manage (essentially daemons, but almost everything) services that can be defined by a start, stop, and check command. For exemple, il you installed OpenLDAP on your MacOS X, you probably noticed that there is no graphical tool to handle start/stop of the daemons. Now with TSM you can start or stop your OpenLDAP, and check if it is running.

How it works ?

Things are almost as simple as I want when I started the project. The first time you run TSM, you get an empty list, that you can fill when using the "Preferences" button. A drawer appear at the window bottom with four fields, a checkbox and three buttons (perhaps two dimmed).

(PNG)

- Name : This is an arbitrary name for your service
- Check command : This is a shell command that must return 0 when service is running, or something else if it is not running.
- Start command : A ommand to execute to launch the service
- Stop command : guess ? A command to execute when stopping the service.
- Authenticate : When checked, if (and only if) a password is present in the "Root PW" text field, the commands will be executed as root. That means that actually, when TSM is launched, all services checks are done unauthentified (and fatser)

An example

Here is what you need to test this with apache daemon :

- Name : Apache
- Check command : ps auxww|grep httpd|grep -v grep
- Start command : apachectl start
- Stop command : apachectl stop
- Authenticate : Check this because you need to be root to start or stop apache.



Pour toutes informations concernant ce site, vous pouvez contacter le webmaster