mirror of
https://github.com/troglobit/finit.git
synced 2026-10-11 17:02:42 +07:00
Fix #295: add reboot/shutdown/poweroff timeout -t SEC to initctl
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
+4
-2
@@ -64,6 +64,7 @@ int verbose = 0;
|
||||
int plain = 0;
|
||||
int quiet = 0;
|
||||
int runlevel = 0;
|
||||
int timeout = 0;
|
||||
int cgrp = 0;
|
||||
int utmp = 0;
|
||||
|
||||
@@ -513,8 +514,9 @@ static int do_cond_show(char *arg)
|
||||
static int do_cmd(int cmd)
|
||||
{
|
||||
struct init_request rq = {
|
||||
.magic = INIT_MAGIC,
|
||||
.cmd = cmd,
|
||||
.magic = INIT_MAGIC,
|
||||
.cmd = cmd,
|
||||
.sleeptime = timeout,
|
||||
};
|
||||
|
||||
if (client_send(&rq, sizeof(rq))) {
|
||||
|
||||
Reference in New Issue
Block a user