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 ({
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',
......
......@@ -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 {
......
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
* openvz: use real console instead of 'vzctl enter'
......
......@@ -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
......
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