E
E
evilelf2015-11-30 12:12:53
bash
evilelf, 2015-11-30 12:12:53

How to properly organize the smooth operation of the process?

Hello.
Colleagues, how to organize the smooth operation of the process in the most correct and high-quality way on centos 6?
The process should every 2 sec. open the URL.
It is necessary that the process can be controlled (started and stopped).
The process should only run 1 (no duplication). Those. if a process is running, the same process should not be started.
Thanks to all.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg Tsilyurik, 2015-11-30
@Olej

Actually, most of the time processes that work like this are written as daemons.
There are a million examples.

A
alexxandr, 2015-11-30
@alexxandr

make a lock file for the process

E
Eugene, 2015-11-30
@Nc_Soft

supervisord.org

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question