Home Explore Blog CI



man-pages

14th chunk of `init.man`
fe6f85a3e3aed4d42dcbf3ed93a1901d1bd1aca68782044a0000000100000878
 Set default unit to activate on startup. If not specified, defaults to default.target. See systemd.unit= above.

       --dump-core
           Enable core dumping on crash. This switch has no effect when running as user instance. Same as systemd.dump_core= above.

       --crash-vt=VT
           Switch to a specific virtual console (VT) on crash. This switch has no effect when running as user instance. Same as systemd.crash_chvt= above (but not the different spelling!).

       --crash-shell
           Run a shell on crash. This switch has no effect when running as user instance. See systemd.crash_shell= above.

       --crash-reboot
           Automatically reboot the system on crash. This switch has no effect when running as user instance. See systemd.crash_reboot above.

       --confirm-spawn
           Ask for confirmation when spawning processes. This switch has no effect when run as user instance. See systemd.confirm_spawn above.

       --show-status
           Show terse unit status information on the console during boot-up and shutdown. See systemd.show_status above.

       --log-color
           Highlight important log messages. See systemd.log_color above.

       --log-level=
           Set log level. See systemd.log_level above.

       --log-location
           Include code location in log messages. See systemd.log_location above.

       --log-target=
           Set log target. See systemd.log_target above.

       --log-time=
           Prefix console messages with timestamp. See systemd.log_time above.

       --machine-id=
           Override the machine-id set on the hard drive. See systemd.machine_id= above.

       --service-watchdogs
           Globally enable/disable all service watchdog timeouts and emergency actions. See systemd.service_watchdogs above.

       --default-standard-output=, --default-standard-error=
           Sets the default output or error output for all services and sockets, respectively. See systemd.default_standard_output= and systemd.default_standard_error= above.

SOCKETS AND FIFOS
       /run/systemd/notify
           Daemon status notification socket. This is an AF_UNIX datagram

Title: Systemd Command Line Options: Unit Activation, Crash Handling, Logging, and Socket Information
Summary
This section details various systemd command-line options that often mirror kernel command-line settings. These include options to set the default unit to activate on startup (`--unit=`), enable core dumping on crashes (`--dump-core`), switch to a specific virtual console on crashes (`--crash-vt=`), run a shell on crashes (`--crash-shell`), automatically reboot on crashes (`--crash-reboot`), require confirmation when spawning processes (`--confirm-spawn`), show brief unit status (`--show-status`), highlight log messages (`--log-color`), set the log level (`--log-level=`), include code location in logs (`--log-location`), set the log target (`--log-target=`), prefix log messages with timestamps (`--log-time=`), override the machine ID (`--machine-id=`), enable/disable service watchdogs (`--service-watchdogs`), and set the default standard output/error (`--default-standard-output=`, `--default-standard-error=`). It concludes by mentioning the daemon status notification socket.