martinmeinke / rlog

Raspberry Pi based logger for KACO Powador inverters
6 stars 0 forks source link

Putting the daemon PID file in the /tmp directory might not be the best solution #29

Open martinmeinke opened 11 years ago

martinmeinke commented 11 years ago

when tmp is cleaned stopping the daemon is impossible

stylpen commented 11 years ago

when is /tmp cleaned eccept on shutdown? if not pidfile: sys.exec("kill -9 ps -ef | grep rlogd") or something like that wold help in the unlikely case

stylpen commented 11 years ago

do not daemonize at all in the program but let systemd do that for us. systemd keeps track of running instances and puts output in a journal. works great in HomA.