create /var/run/dtach at pvedaemon startup

Previos code creates the directory on the wrong node!
This commit is contained in:
Dietmar Maurer 2012-10-02 10:08:26 +02:00
parent f9d4fc64e2
commit a2d331848d
4 changed files with 10 additions and 2 deletions

View File

@ -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',

View File

@ -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 {

View File

@ -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 <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'

View File

@ -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