Description : adding force option to reboot command.
authorwchang kim <wchang.kim@samsung.com>
Mon, 4 Jul 2016 11:42:24 +0000 (20:42 +0900)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Fri, 26 Jan 2024 16:49:49 +0000 (17:49 +0100)
This patch is from tizen-2.4.

Change-Id: I21f2767dd81279878bacd44bd44a36f06406ea65
Signed-off-by: Woochang Kim <wchang.kim@samsung.com>
src/systemctl/systemctl.c

index 6a0ed79..869fefe 100644 (file)
@@ -7194,6 +7194,15 @@ static int systemctl_parse_argv(int argc, char *argv[]) {
                 return -EINVAL;
         }
 
+        /* FIXME from systemd-216 of tizen-2.4 */
+        /* Now, in Tizen, some of services are hardly not
+         * terminated. At last, time-out occurred. It can make serious
+         * problem in shutdown process. Until we solve this problem
+         * reboot is performed forcedly. */
+        if (arg_action == ACTION_REBOOT ||
+            arg_action == ACTION_POWEROFF)
+                arg_force = 2;
+
         return 1;
 }