Commit Graph

8 Commits

Author SHA1 Message Date
Wolfgang Bumiller
0b9cf991e5 added: enter_systemd_scope
This essentially performas the task of systemd-run while
also waiting for the job to finish.

With the systemd-run version in jessie we run into a race
condition where the executed process can start forking child
processes before the systemd daemon is done setting up the
scope's cgroups, causing the children to NOT be included in
the cgroups. This means the child processes (in our case
qemu) will not adhere to the limits we want to apply to it
via cgroups.

enter_systemd_scope() performs the setup task of systemd-run
and waits for the job to finish, after this we can spawn the
qemu process without systemd-run.
2016-06-03 11:26:13 +02:00
Wolfgang Bumiller
97c8c8577d Tools::df: fork and use Filesys::Df
Instead of depending on the 'df' commandline tool do a
fork() to create a killable process and run Filesys::Df,
returning the data over a pipe.
2015-10-30 07:00:37 +01:00
Dietmar Maurer
051d9b42a8 depend on libclone-perl 2015-10-07 08:54:25 +02:00
Dietmar Maurer
7238ea8dbf bump version to 1.0-48 2013-02-25 06:21:26 +01:00
Dietmar Maurer
568ba6a471 use Digest::SHA instead of Digest::SHA1 2012-03-20 11:21:38 +01:00
Dietmar Maurer
7514b23af4 use package libstring-shellquote-perl 2011-10-25 13:35:08 +02:00
Dietmar Maurer
a413a515c5 add PVE::Tools::random_ether_addr() 2011-10-05 09:21:52 +02:00
Dietmar Maurer
e143e9d86b imported from svn 'pve-common/trunk' 2011-08-23 07:31:48 +02:00