Say i have a simple example:
root@server [/etc/init.d]# cat /root/scripts/test.sh
while sleep 5
do
echo "how are u mate" >> /root/scripts/test.log
done
root@server [/etc/init.d]#
Instead of using rc.local to start or another script to check status, I would like make it as daemon, where i can do the following:
service mytestdaemon start/stop/status