linux - where i can put a script to start on init centos? -


i need put script start on init on centos ?, not need make daemon, script.

i don't know if can this, answer can daemon. don't need daemon.

i put scrips init centos:

    bufferc = stringio()     c = pycurl.curl()     c.setopt(c.url, w3ingunix)     c.setopt(c.writefunction, bufferc.write)     c.perform()     c.close()     # body string in encoding.     bodyc = bufferc.getvalue()     print(bodyc) 

i need script run no matter path , not need daemon !

well!, have do, make script , save on wherever decide on system , refer on path start on init on centos !

cd /etc, then

vim rc.local

and put path of script, when restart system, script run.


Comments

Popular posts from this blog

php - How to display all orders for a single product showing the most recent first? Woocommerce -

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

angularjs - How restrict admin panel using in backend laravel and admin panel on angular? -