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
Post a Comment