Skip to main content

Thread: Restart a service peridoically?


hello,

writing application run ubuntu server needs run every few seconds.

now, writing in python in loop sleeps few seconds , runs again. (would launched automatically @ start up, guess.)


however:

1) not trust code not crash.
2) not trust code run forever out memory leak.

looking way solve both problems.

(i thought using cron run fresh copy of program, need run more once minute.)


ideas?

thank you,

rely on internal loop mostly, have chron job start program periodcally have program check if running @ start-up , quit if is.

python program shouldn't leek memory, garbage collected.


Forum The Ubuntu Forum Community Ubuntu Specialised Support Ubuntu Servers, Cloud and Juju Server Platforms [ubuntu] Restart a service peridoically?


Ubuntu

Comments

Popular posts from this blog

Convierte tu Raspberry en un NAS. Firmware fvdw-sl 15.3 - Raspberry Pi Forums

How to format a Get Request

avrdude: verification error, first mismatch at byte 0x0000 0x0c != 0x62