“systemctl restart too few arguments”错误解析与解决 1. 错误信息含义 当你看到“systemctl restart too few arguments”这样的错误信息时,这意味着你在使用systemctl restart命令时没有提供足够的参数。具体来说,systemctl restart命令需要一个服务名作为参数来指明要重启哪个服务,但在这个错误情况下,没有提供这个...
[root@zgxlinux-aliyun ~]# systemctl stop Too few arguments. [root@zgxlinux-aliyun ~]# systemctl is-enabled crond disabled [root@zgxlinux-aliyun ~]# systemctl enable crond Created symlink from /etc/systemd/system/multi-user.target.wants/crond.service to /usr/lib/systemd/system/crond.servi...
To start asystemdservice, executing instructions in the service’s unit file, use thestartcommand. If you are running as a non-root user, you will have to usesudosince this will affect the state of the operating system: sudosystemctl startapplication.service Copy As we mentioned above,...
Why does a normal human user (non-root) using a virtual terminal or graphical session running systemctl status unit-name need to know and show the PID, command line arguments of systemd units run under different users accounts or root? Can't this be prevented somehow and wouldn't that be ...
$ systemctl --failed If we suspect a particular unit file (or if it usually fails), we can always check its status: $ systemctl is-failed fwupd-refresh.service failed We mustn’t forget to add the unit name after the command. If we do, it displays a “Too few arguments” error mes...