← 返回命令列表

Linux command

systemctl-stop 命令

文本

复制后可按需替换文件名、目录或参数。

常用示例

Stop

systemctl stop [unit]

Example

systemctl stop [unit] --no-warn

Example

systemctl stop [unit] --user

说明

systemctl stop deactivates systemd units, stopping services, unmounting filesystems, or deactivating other unit types. The command queues a stop job for the specified unit. For services, this sends a stop command (usually SIGTERM followed by SIGKILL after timeout). The unit transitions to the inactive state. Dependent units are not automatically stopped unless they cannot function without the stopped unit.

参数

--user
Stop user service manager units instead of system units
--no-block
Do not wait for the operation to complete
--no-warn
Suppress warning about stopping running units
--job-mode=_MODE_
Specify how to deal with already queued jobs

FAQ

What is the systemctl-stop command used for?

systemctl stop deactivates systemd units, stopping services, unmounting filesystems, or deactivating other unit types. The command queues a stop job for the specified unit. For services, this sends a stop command (usually SIGTERM followed by SIGKILL after timeout). The unit transitions to the inactive state. Dependent units are not automatically stopped unless they cannot function without the stopped unit.

How do I run a basic systemctl-stop example?

Run `systemctl stop [unit]` in a terminal, then adjust file names, paths, flags, or remote targets for your system.

What does --user do in systemctl-stop?

Stop user service manager units instead of system units