diff --git a/PVE/API2/OpenVZ.pm b/PVE/API2/OpenVZ.pm index 1e6514b6..d72fc126 100644 --- a/PVE/API2/OpenVZ.pm +++ b/PVE/API2/OpenVZ.pm @@ -864,7 +864,6 @@ __PACKAGE__->register_method ({ my $remcmd = $remip ? ['/usr/bin/ssh', '-c', 'blowfish-cbc', '-t', $remip] : []; - mkdir "/var/run/dtach"; my $shcmd = [ '/usr/bin/dtach', '-A', "/var/run/dtach/vzctlconsole$vmid", '-r', 'winch', '-z', diff --git a/bin/pvedaemon b/bin/pvedaemon index 41f16715..243282c2 100755 --- a/bin/pvedaemon +++ b/bin/pvedaemon @@ -33,6 +33,9 @@ $0 = "pvedaemon"; PVE::APIDaemon::enable_debug() if $opt_debug; +# create dir for dtach sockets +mkdir "/var/run/dtach"; + my $cpid; my $daemon; eval { diff --git a/debian/changelog.Debian b/debian/changelog.Debian index d93ec72b..3352ba2f 100644 --- a/debian/changelog.Debian +++ b/debian/changelog.Debian @@ -1,3 +1,9 @@ +pve-manager (2.2-21) unstable; urgency=low + + * openvz console fix: create /var/run/dtach at pvedaemon startup + + -- Proxmox Support Team Tue, 02 Oct 2012 10:10:55 +0200 + pve-manager (2.2-20) unstable; urgency=low * openvz: use real console instead of 'vzctl enter' diff --git a/defines.mk b/defines.mk index a7f733aa..66a64da4 100644 --- a/defines.mk +++ b/defines.mk @@ -2,7 +2,7 @@ RELEASE=2.2 VERSION=2.2 PACKAGE=pve-manager -PACKAGERELEASE=20 +PACKAGERELEASE=21 BINDIR=${DESTDIR}/usr/bin PERLLIBDIR=${DESTDIR}/usr/share/perl5