Re: making a script into a service

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



Try to use this
http://www.jejik.com/articles/2007/02/a_simple_unix_linux_daemon_in_python/ it
allows you start/stop/restart the script using the following commands.

python myscript.py start
python myscript.py stop
python myscript.py restart


Source:
http://stackoverflow.com/questions/16420092/how-to-make-python-script-run-as-service

On Mon, Dec 9, 2013 at 1:54 PM, Larry Martell <larry.martell@xxxxxxxxx>wrote:

> We have a python script that is currently run from cron. We want to
> make it into a service so it can be controlled with service
> start/stop/restart. Can anyone point me at site that has instructions
> on how to do this? I've googled but haven't found anything.
> _______________________________________________
> CentOS mailing list
> CentOS@xxxxxxxxxx
> http://lists.centos.org/mailman/listinfo/centos
>



-- 
"The intuitive mind is a sacred gift and the rational mind is a faithful
servant. We have created a society that honors the servant and has
forgotten the gift." (A. Einstein)

"La mente intuitiva è un dono sacro e la mente razionale è un fedele servo.
Noi abbiamo creato una società che onora il servo e ha dimenticato il
dono."  (A. Einstein)

Fabrizio Di Carlo
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos





[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux