On 28.10.2012 18:33, Ritesh Raj Sarraf wrote: > If it is not too much to ask, and if you have the time, you may want to > install LMT and check it yourself. Not everything is crisp in my english. > Please let me know if you'd be willing to. I can prepare the new deb for > you, that I am currently holding for release, because of this issue. > > > * rrs@champaran:/var/lock$ sudo systemctl status laptop-mode.service > laptop-mode.service - Laptop Mode Tools > Loaded: loaded (/lib/systemd/system/laptop-mode.service; enabled) > Active: failed (Result: timeout) since Sun, 28 Oct 2012 > 22:02:55 +0530; 2min 49s ago
Is the forking/polling process the main process that stays around? Do you have more then one long running process? For a Type=forking service systemd tries to get the MainPID so it can properly monitor the service and detect crashes. Usually you supply a PIDFile option, telling systemd the PID of the main process for Type=forking services. It could be, that in your case systemd was not tracking the correct process. If PIDFile is not set, systemd will try to guess the main pid. You can try changing the parameter to GuessMainPID=no Or you can record the pid of the polling process in a /var/run/foo.pid file and tell systemd that via the PIDFile option. See systemd.service. That all said, it seems you are doing some overly complex and brittle stuff with shell. If you need a monitoring daemon, maybe another solution then polling shell processes would be better. Michael -- Why is it that all of the instruments seeking intelligent life in the universe are pointed away from Earth?
signature.asc
Description: OpenPGP digital signature