aboutsummaryrefslogtreecommitdiff
path: root/src/rc/rc.c
diff options
context:
space:
mode:
authorRoy Marples <roy@marples.name>2008-03-03 17:19:56 +0000
committerRoy Marples <roy@marples.name>2008-03-03 17:19:56 +0000
commit15cf41e7131cebbb74241180f36f59384c7a0477 (patch)
tree30accca041088b161a4d5cfcb731dcd40a496868 /src/rc/rc.c
parentf3e90dddbfcf838b653846cce7fd2be479c68900 (diff)
Split VPS into VSERVER and OPENVZ
Diffstat (limited to 'src/rc/rc.c')
-rw-r--r--src/rc/rc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/rc/rc.c b/src/rc/rc.c
index 183c23c3..e1b7ac3d 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));
}