Bug#691661: systemd and shell processes

2012-10-28 Thread Tollef Fog Heen
]] Ritesh Raj Sarraf Hiya, > On Sunday 28 October 2012 03:18 PM, Tollef Fog Heen wrote: > >> [Service] > >> > Type=simple > > I suspect you want type=forking here? > > I had tried that too. But it inherits similar problems. [...] > It stopped clean. No locks are help and the status shows corr

Bug#691661: systemd and shell processes

2012-10-28 Thread Michael Biebl
On 28.10.2012 19:14, Ritesh Raj Sarraf wrote: > Hello Michael, > > On Sunday 28 October 2012 11:28 PM, Michael Biebl wrote: >> 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 th

Bug#691661: systemd and shell processes

2012-10-28 Thread Ritesh Raj Sarraf
On Sunday 28 October 2012 11:44 PM, Ritesh Raj Sarraf wrote: >> > 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 > I will try it now. >

Bug#691661: systemd and shell processes

2012-10-28 Thread Ritesh Raj Sarraf
Hello Michael, On Sunday 28 October 2012 11:28 PM, Michael Biebl wrote: > 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

Bug#691661: systemd and shell processes

2012-10-28 Thread Michael Biebl
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

Bug#691661: systemd and shell processes

2012-10-28 Thread Ritesh Raj Sarraf
Hello Tollef, On Sunday 28 October 2012 03:18 PM, Tollef Fog Heen wrote: >> [Service] >> > Type=simple > I suspect you want type=forking here? I had tried that too. But it inherits similar problems. Here's the output when: Doing a start: rrs@champaran:/var/lock$ sudo systemctl status laptop-

Bug#691661: systemd and shell processes

2012-10-28 Thread Tollef Fog Heen
]] Ritesh Raj Sarraf > From what I have investigated so far, it looks like systemd prefers to > create a cgroup for each service and keep all its associated processes > together. > This seems to create problems for LMT. It's polling script does not seem > to be getting detached from the parent ca

Bug#691661: systemd and shell processes

2012-10-28 Thread Ritesh Raj Sarraf
On Sunday 28 October 2012 02:22 PM, Ritesh Raj Sarraf wrote: > Ideally, pid 14197 should have been backgrounded, and pid 14176 should > have clean exited, leaving pid 14197 to loop. It does not allow that. Also, frequently, I see the service hung when trying to manually start. rrs@champaran:/run/

Bug#691661: systemd and shell processes

2012-10-28 Thread Ritesh Raj Sarraf
Package: systemd Version: 44-5 Severity: normal Hello systemd maintainers, Filing this as a bug report so that it is publicly accessible for future reference. I am trying to prepare a systemd service file for Laptop Mode Tools and have run into some problems. LMT is a power saving tool writte