Results 1 to 1 of 1
Dear All,
I have created a shell script called test.sh inside the /etc/init.d, as shown below.
******************************test.sh************* ***************
#!/bin/sh
# it is common to write start stop scripts in the ...
- 08-29-2010 #1Just Joined!
- Join Date
- Aug 2010
- Posts
- 2
facing problem while creating a local service in linux
Dear All,
I have created a shell script called test.sh inside the /etc/init.d, as shown below.
******************************test.sh************* ***************
#!/bin/sh
# it is common to write start stop scripts in the bourne shell
# for scripts which are started after all file systems are mounted it doesn't
# really matter. For scripts which are started before, you could end up with
# a problem if that shell is located on a filesystem different than "/"
case $1 in
start) upd 1025/tcp
;;
stop) upd 1025/tcp
esac
************************************************** *********
Now I have linked this test.sh file to the rc.d folder, as shown in the following.
ln -s /etc/init.d/test.sh /etc/rc.d/S99test.sh
Now my problem is that this service upd is not coming inside the /etc/services....
Can anybody tell me that how can i get this upd service inside the /etc/services????
Thanks in advance.


Reply With Quote