【发布时间】:2018-07-18 23:06:35
【问题描述】:
想法是使用指向节点的变量而不是硬编码路径,我的解决方案是ExecStart="$(which node)" /home/jonma/Development/chewy
但是当我运行该服务时,我收到以下错误:
feb 08 11:12:51 jonma-VirtualBox systemd[1]: [/lib/systemd/system/chewy.service:2] Executable path is not absolute, ignoring: $(which node) /home/jon
feb 08 11:12:51 jonma-VirtualBox systemd[1]: chewy.service: Service lacks both ExecStart= and ExecStop= setting. Refusing.
如何在不硬编码路径的情况下实现这一点?
【问题讨论】: