// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
// based on rebootmgr.cc by Jacques Gelinas
// Copyright (C) 2003 Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
// based on rebootmgr.cc by Jacques Gelinas
- sprintf (sockn,"%s/%s/dev/reboot",VROOTDIR, vname);
+ sprintf (sockn, DEFAULT_VSERVERDIR "/%s/dev/reboot",vname);
if (strcmp(buf,"reboot\n")==0){
char cmd[1000];
syslog (LOG_NOTICE,"reboot vserver %s\n",vname);
if (strcmp(buf,"reboot\n")==0){
char cmd[1000];
syslog (LOG_NOTICE,"reboot vserver %s\n",vname);
- snprintf (cmd,sizeof(cmd)-1,"%s/vserver %s restart >>/var/log/boot.log 2>&1",SBINDIR, vname);
+ snprintf (cmd,sizeof(cmd)-1, SBINDIR "/vserver %s restart >>/var/log/boot.log 2>&1", vname);
system (cmd);
ret = 0;
}else if (strcmp(buf,"halt\n")==0){
char cmd[1000];
syslog (LOG_NOTICE,"halt vserver %s\n",vname);
system (cmd);
ret = 0;
}else if (strcmp(buf,"halt\n")==0){
char cmd[1000];
syslog (LOG_NOTICE,"halt vserver %s\n",vname);
- snprintf (cmd,sizeof(cmd)-1,"%s/vserver %s stop >>/var/log/boot.log 2>&1",SBINDIR, vname);
+ snprintf (cmd,sizeof(cmd)-1, SBINDIR "/vserver %s stop >>/var/log/boot.log 2>&1", vname);