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@xxxxxxxxxx> --- sys-utils/rtcwake.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys-utils/rtcwake.c b/sys-utils/rtcwake.c index f2efc87..eedf78d 100644 --- a/sys-utils/rtcwake.c +++ b/sys-utils/rtcwake.c @@ -569,13 +569,14 @@ int main(int argc, char **argv) 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; -- 1.8.2.1 -- To unsubscribe from this list: send the line "unsubscribe util-linux" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html