From 15cf41e7131cebbb74241180f36f59384c7a0477 Mon Sep 17 00:00:00 2001 From: Roy Marples Date: Mon, 3 Mar 2008 17:19:56 +0000 Subject: Split VPS into VSERVER and OPENVZ --- src/rc/rc.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/rc/rc.c') diff --git a/src/rc/rc.c b/src/rc/rc.c index 183c23c..e1b7ac3 100644 --- a/src/rc/rc.c +++ b/src/rc/rc.c @@ -289,8 +289,8 @@ static void sulogin (bool cont) #ifdef __linux__ char *e = getenv ("RC_SYS"); - /* VPS systems cannot do a sulogin */ - if (e && strcmp (e, "VPS") == 0) { + /* VSERVER and OPENVZ systems cannot do a sulogin */ + if (e && (strcmp (e, "VSERVER") == 0 || strcmp (e, "OPENVZ") == 0) { execl ("/sbin/halt", "/sbin/halt", "-f", (char *) NULL); eerrorx ("%s: unable to exec `/sbin/halt': %s", applet, strerror (errno)); } -- cgit v1.2.3