You already have the script to start and stop, the script you attached
is a startup script. All you have to do is copy it in an rc folder in
/etc/. Copy your start up script to /etc/initd/ directory first. Then
make a link to this script in  your /etc/rc3d/ directory.

cp yourscript /etc/initd/kannel
ln -s /etc/init.d/kannel  /etc/rc3.d/S95Kannel
ln -s /etc/init.d/kannel  /etc/rc6.d/K95Kannel
ln -s /etc/init.d/kannel  /etc/rc2.d/K95Kannel

This will enable both starting and stoping automatically.



-- 
Merid Tilahun Kebede
Managing Director
KTM Systems
Addis Ababa, Ethiopia
Tel:  +251 114 660943/44

Fax:    +251 114 660942

Cell:   +251 911 646 217

Reply via email to