I have a script as report.sh which prints its out put in some file.
Now I want to run this as a service so that when I start this service it shud run in the background and give me the out put.
Again I should be able to stop it and I should able to configure its so that it can start when I start my system.
What I have done
In the /etc/services
I have added report 5555/tcp
Then in the /etc/xinetd.d I have created a file report_com where I have given
socket_type = stream
protocol = tcp
wait = no
user = root
server = /home/openuser/Desktop/report.sh
port = 5555
now ehen I type /etc/init.d/xinetd restart it shows no such files or directory.
Now I dont know what to do..
Could anyone guide me Whether I have done correct or not?
If not then how can I run My scrip as a service..