349
349
<command>halt</command>,
350
350
<command>poweroff</command>,
351
351
<command>reboot</command> or
352
<command>kexec</command> execute
352
<command>kexec</command> execute the
353
353
selected operation without shutting
354
354
down all units. However, all processes
355
355
will be killed forcibly and all file
356
356
systems are unmounted or remounted
357
357
read-only. This is hence a drastic but
358
358
relatively safe option to request an
359
immediate reboot.</para></listitem>
360
<option>--force</option> is specified
361
twice for these operations, they will
362
be executed immediately without
363
terminating any processes or umounting
364
any file systems. Warning: specifying
365
<option>--force</option> twice with
366
any of these operations might result
367
in data loss.</para></listitem>
406
414
PolicyKit before executing the
407
415
operation.</para></listitem>
419
<term><option>--lines=</option></term>
420
<term><option>-n</option></term>
422
<listitem><para>When used with
423
<command>status</command> controls the
424
number of journal lines to show,
425
counting from the most recent
426
ones. Takes a positive integer
427
argument. Defaults to
428
10.</para></listitem>
432
<term><option>--follow</option></term>
433
<term><option>-f</option></term>
435
<listitem><para>When used with
436
<command>status</command> continously
437
prints new journal entries as they are
439
journal.</para></listitem>
443
<term><option>--output=</option></term>
444
<term><option>-o</option></term>
446
<listitem><para>When used with
447
<command>status</command> controls the
448
formatting of the journal entries that
449
are shown. For the available choices
451
<citerefentry><refentrytitle>systemd-journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>. Defaults
453
<literal>short</literal>.</para></listitem>
411
458
<para>The following commands are understood:</para>
551
598
<listitem><para>Show terse runtime
552
599
status information about one or more
553
units. This function is intended to
554
generate human-readable output. If you
555
are looking for computer-parsable
556
output, use <command>show</command>
557
instead. If a PID is passed
558
information about the unit the process
559
of the PID belongs to is
560
shown.</para></listitem>
600
units, followed by its most recent log
601
data from the journal. This function
602
is intended to generate human-readable
603
output. If you are looking for
604
computer-parsable output, use
605
<command>show</command> instead. If a
606
PID is passed information about the
607
unit the process of the PID belongs to
608
is shown.</para></listitem>
563
611
<term><command>show [NAME...|JOB...]</command></term>
1017
1065
system. This is mostly equivalent to
1018
1066
<command>start halt.target</command>
1019
1067
but also prints a wall message to all
1021
combined with <option>--force</option>
1022
shutdown of all running services is
1023
skipped, however all processes are killed
1024
and all file systems are unmounted or
1068
users. If combined with
1069
<option>--force</option> shutdown of
1070
all running services is skipped,
1071
however all processes are killed and
1072
all file systems are unmounted or
1025
1073
mounted read-only, immediately
1027
system halt.</para></listitem>
1074
followed by the system halt. If
1075
<option>--force</option> is specified
1076
twice the the operation is immediately
1077
executed without terminating any
1078
processes or unmounting any file
1079
systems. This may result in data
1080
loss.</para></listitem>
1028
1081
</varlistentry>
1030
1083
<term><command>poweroff</command></term>
1033
1086
power-off the system. This is mostly
1034
1087
equivalent to <command>start
1035
1088
poweroff.target</command> but also
1036
prints a wall message to all
1089
prints a wall message to all users. If
1038
1090
combined with <option>--force</option>
1039
1091
shutdown of all running services is
1040
skipped, however all processes are killed
1041
and all file systems are unmounted or
1042
mounted read-only, immediately
1044
powering off.</para></listitem>
1092
skipped, however all processes are
1093
killed and all file systems are
1094
unmounted or mounted read-only,
1095
immediately followed by the powering
1096
off. If <option>--force</option> is
1097
specified twice the the operation is
1098
immediately executed without
1099
terminating any processes or
1100
unmounting any file systems. This may
1101
result in data loss.</para></listitem>
1045
1102
</varlistentry>
1047
1104
<term><command>reboot</command></term>
1049
<listitem><para>Shut down and
1050
reboot the system. This is mostly
1051
equivalent to <command>start
1106
<listitem><para>Shut down and reboot
1107
the system. This is mostly equivalent
1052
1109
reboot.target</command> but also
1053
prints a wall message to all
1110
prints a wall message to all users. If
1055
1111
combined with <option>--force</option>
1056
1112
shutdown of all running services is
1057
skipped, however all processes are killed
1058
and all file systems are unmounted or
1059
mounted read-only, immediately
1061
reboot.</para></listitem>
1113
skipped, however all processes are
1114
killed and all file systems are
1115
unmounted or mounted read-only,
1116
immediately followed by the reboot. If
1117
<option>--force</option> is specified
1118
twice the the operation is immediately
1119
executed without terminating any
1120
processes or unmounting any file
1121
systems. This may result in data
1122
loss.</para></listitem>
1062
1123
</varlistentry>
1064
1125
<term><command>kexec</command></term>
1119
1180
<citerefentry><refentrytitle>systemd</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1120
1181
<citerefentry><refentrytitle>systemadm</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1182
<citerefentry><refentrytitle>systemd-journalctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1121
1183
<citerefentry><refentrytitle>systemd-loginctl</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
1122
1184
<citerefentry><refentrytitle>systemd.unit</refentrytitle><manvolnum>5</manvolnum></citerefentry>,
1123
1185
<citerefentry><refentrytitle>systemd.special</refentrytitle><manvolnum>7</manvolnum></citerefentry>,