【发布时间】:2023-03-14 09:40:01
【问题描述】:
我有一个 Systemd 服务,它启动我需要作为普通 Bash 脚本执行的输出过程
[Unit]
Description=Example app
[Service]
Type=simple
PIDFile=/var/run/app.pid
Sockets=app.socket
StandardInput=fd:app.socket
#StandardOutput=fd:sh
StandardError=journal
ExecStart=/usr/bin/app -a | sh #
[Install]
WantedBy=default.target
应用程序的输出不是执行,而是进入日志。
告诉我如何解决这个问题?
【问题讨论】:
标签: linux bash service sh systemd