Commit 8f343d5a authored by Dietmar Maurer's avatar Dietmar Maurer

create /var/run/dtach at pvedaemon startup

Previos code creates the directory on the wrong node!
parent 2a1379b7
...@@ -864,7 +864,6 @@ __PACKAGE__->register_method ({ ...@@ -864,7 +864,6 @@ __PACKAGE__->register_method ({
my $remcmd = $remip ? my $remcmd = $remip ?
['/usr/bin/ssh', '-c', 'blowfish-cbc', '-t', $remip] : []; ['/usr/bin/ssh', '-c', 'blowfish-cbc', '-t', $remip] : [];
mkdir "/var/run/dtach";
my $shcmd = [ '/usr/bin/dtach', '-A', my $shcmd = [ '/usr/bin/dtach', '-A',
"/var/run/dtach/vzctlconsole$vmid", "/var/run/dtach/vzctlconsole$vmid",
'-r', 'winch', '-z', '-r', 'winch', '-z',
......
...@@ -33,6 +33,9 @@ $0 = "pvedaemon"; ...@@ -33,6 +33,9 @@ $0 = "pvedaemon";
PVE::APIDaemon::enable_debug() if $opt_debug; PVE::APIDaemon::enable_debug() if $opt_debug;
# create dir for dtach sockets
mkdir "/var/run/dtach";
my $cpid; my $cpid;
my $daemon; my $daemon;
eval { eval {
......
pve-manager (2.2-21) unstable; urgency=low
* openvz console fix: create /var/run/dtach at pvedaemon startup
-- Proxmox Support Team <support@proxmox.com> Tue, 02 Oct 2012 10:10:55 +0200
pve-manager (2.2-20) unstable; urgency=low pve-manager (2.2-20) unstable; urgency=low
* openvz: use real console instead of 'vzctl enter' * openvz: use real console instead of 'vzctl enter'
......
...@@ -2,7 +2,7 @@ RELEASE=2.2 ...@@ -2,7 +2,7 @@ RELEASE=2.2
VERSION=2.2 VERSION=2.2
PACKAGE=pve-manager PACKAGE=pve-manager
PACKAGERELEASE=20 PACKAGERELEASE=21
BINDIR=${DESTDIR}/usr/bin BINDIR=${DESTDIR}/usr/bin
PERLLIBDIR=${DESTDIR}/usr/share/perl5 PERLLIBDIR=${DESTDIR}/usr/share/perl5
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment