How to create program that can be run by: #service myservice start
- by Saif Bechan
I am new to Linux and want to know what kind of programs can be run by using.
#service myservice start
And the programs stays on until stopped. Are they normal c++ programs or are they different. In some tutorials i have seen that they use ./myprogram to start a program.
Another thing I have seen is the usage of .sh files.
One last type of program i see is executed by the command: #/usr/bin/myprogramm
Can someone explain the difference between these or point me to a basic tutorial/guide.