[systemd-devel] calling systemctl from C++

2011-11-06 Thread Michael D. Berger
I see no way to directly call systemctl from a C++ program, so I'll use a pipe. Right? I think a library function would be better. Mike. -- Michael D. Berger m.d.ber...@ieee.org http://www.rosemike.net/ ___ systemd-devel mailing list systemd-devel@

Re: [systemd-devel] calling systemctl from C++

2011-11-06 Thread Michael Biebl
2011/11/6 Michael D. Berger : > I see no way to directly call systemctl from a C++ > program, so I'll use a pipe.  Right?  I think a > library function would be better. Not knowing exactly what you are trying to do, please note you can use D-Bus to access systemd. If you are using C++, using QtDBu

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-11-06 Thread NeilBrown
On Wed, 2 Nov 2011 14:32:25 +0100 Lennart Poettering wrote: > On Wed, 02.11.11 13:03, NeilBrown (ne...@suse.de) wrote: > > Each instance of mdmon manages a set of arrays and must remain running > > until all of those arrays are readonly (or shut down). This allows it to > > record that all writ

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-11-06 Thread Kay Sievers
On Mon, Nov 7, 2011 at 03:52, NeilBrown wrote: > However there is an important piece missing.  When you remount,ro a > filesystem, the block device doesn't get told so it thinks it is still open > read/write.  So md cannot tell mdmon that the array is now read-only That ro/rw flag is visible in

Re: [systemd-devel] systemd kills mdmon if it was started manually by user

2011-11-06 Thread NeilBrown
On Mon, 7 Nov 2011 04:42:54 +0100 Kay Sievers wrote: > On Mon, Nov 7, 2011 at 03:52, NeilBrown wrote: > > > However there is an important piece missing.  When you remount,ro a > > filesystem, the block device doesn't get told so it thinks it is still open > > read/write.  So md cannot tell mdmo