The sysvinit shutdown requires you use -h when using -H or -P.
Other inits just don't seem to care.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
dryrun = 1; /* to skip disabling alarm at the end */
} else if (strcmp(suspend, "off") == 0) {
- char *arg[4];
+ char *arg[5];
int i = 0;
if (verbose)
printf(_("suspend mode: off; executing %s\n"),
_PATH_SHUTDOWN);
arg[i++] = _PATH_SHUTDOWN;
+ arg[i++] = "-h";
arg[i++] = "-P";
arg[i++] = "now";
arg[i] = NULL;