启动时未找到 Systemd 单元但状态显示存在

启动时未找到 Systemd 单元但状态显示存在

服务存在并且已通过状态命令成功找到

>sudo systemd status my-service
● my-service.service - My service description
   Loaded: loaded (/usr/lib/systemd/system/my-service.service; static; vendor preset: disabled)
   Active: inactive (dead)

但是,只需在下一个命令中:

>sudo systemctl start my-service
Failed to start my-service.service: Unit not found.

我完全不知道该去哪里找,命令之间没有任何变化,即使通过 bash-scripot 一起执行或与之连接,它们也会产生相同的结果;

相关内容