I have a script file that I need to run as a service or sorts. Right now I can run it then just kill the pid when I want to shut it off. Id prefer a way to make it a service so I can type, for example:
service myservice stop
-to stop the service, and
service myservice start
- to start it.
Can anyone tell me how to do this? Or if theres a better way, please let me know.