Ubuntu 16.04
在终端中执行这个命令是可以的:
sudo systemctl start TestSM.service
该服务在手动启动时有效,但不会在启动时启动。
Systemd 服务详细信息:
[Unit]
Description=inotify
[Service]
ExecStart =/home/test/inotifySendMM
[Install]
WantedBy = multi-user.target
这是启动日志中的错误(journalctl -b):
ubuntuVM systemd[1010]: TestSM.service: Failed at step EXEC spawning /home/test/inotifySendMM: No such file or directory