This topic created in 3530 days ago, the information mentioned may be changed or developed.
困扰一个晚上了= =求大神搭救
我要用 systemd 来守候一个进程,配置文件是这样写的:
[Unit]
Description=test
[Service]
ExecStart=/root/test/test
ExecReload=/bin/kill -HUP $MAINPID
[Install]
WantedBy=multi-user.target
运行 systemctl start test 后报错提示:
"open config.conf: no such file or directory"
test 目录下还有个 config.conf ,是 test 程序的配置文件
有大神有经验吗谢谢!
2 replies • 2016-09-04 23:23:46 +08:00
 |
|
1
billlee Sep 4, 2016 1
WorkingDirectory=/root/test/test
|