WDService: Copyright 2006, Dmitriy Yatsushkevich (daermon4u@gmail.com),
Vitaly Yatsushkevich (mail4vitalic@gmail.com),
Ofer Samocha (ofersa@gmail.com)
Watch Dog Daemon and client for watching process running
**Install:
./configure
make
and as root:
make install
**Run:
Configure wdserviced by editing wdserviced.conf (read config file for more details)
start wdserviced with:
wdserviced --start
This will read config file and start services from service's folder.
Interactive work produced by wdclient.
For example:
- terminating all running services:
wdclient --term
- starting all services:
wdclient --run
- stop work of apache service:
wdservice --stop apache
- continue work of mail service
wdservice --cont mail
**All options:
wdserviced -h:
Usage: wdserviced <option>
where options include:
--help; -h: print this message
--version; -v: print version
--start; : start watch dog daemon
--stop; : stop watch dog daemon
--stop-with-servicesl : stop watch dog daemon with all started services
--demonize-off : don't start wdserviced as daemon
wdclient -h:
Usage: wdclient [option] <command> [service name]
where options include:
--help; -h: print this message
--version; -v: print version
where command include:
--run : run service.
if service name is not specified, all services will be running
--term : terminate service.
if service name is not specified, all services will be terminated
--stop : stopping service's work.
if service name is not specified, all services will be stopped
--cont : continue service's work.
if service name is not specified, all services will be continued
--info : get service status
--on_restart : enable service restart
--off_restart : disable service restart
--on_startup : enable service startup
--off_startup : disable service startup
**Start wdserviced through inittab
You should add the line like the following to /etc/inittab:
1:235:respawn:/usr/bin/wdserviced --demonize-off --start
**Requirements:
Compile:
- kernel 2.6.6 or later
- gcc, v3.4 or later
- supporting procfs
**License: CCPL
**Contact:
Bug, feature request, not working application - let us know.
daermon4u@gmail.com
mail4vitalic@gmail.com
ofersa@gmail.com
Our Regards for:
D. J. Bernstein and project 'DaemonTools'