I configured openfire on my system as a LAN chat server. I want to write a script to start openfire automatically when system starts.
Lets say I write the script as:
The problem is it requires sudo access. It will ask for password or may give an error or something but there are chances that openfire will not be started. Is there anyother way to write this kind of script?Code:sudo /etc/init.d/openfire start