我想指定一个Environment systemd指令,其中包含=。
Environment=CATALINA_OPTS=-Dappserver.home=/var/lib/archiva/apache-tomcat-current -Dappserver.base=/var/lib/archiva/apache-tomcat-current并得到错误
[/lib/systemd/system/archiva.service:10] Invalid environment assignment, ignoring: CATALINA_OPTS=-Dappserver.home\=/var/lib/archiva/apache在journalctl -xe中。我试着引用"和'的话,用\逃避=,但没有成功。这似乎没有文件记录。
发布于 2020-09-14 06:25:45
替代解
“命令行和环境变量支持的C转义”
https://www.freedesktop.org/software/systemd/man/systemd.service.html
https://askubuntu.com/questions/614106
复制相似问题