【发布时间】:2016-10-01 19:56:14
【问题描述】:
我正在尝试将systemd 服务的输出重定向到一个文件,但它似乎不起作用:
[Unit]
Description=customprocess
After=network.target
[Service]
Type=forking
ExecStart=/usr/local/bin/binary1 agent -config-dir /etc/sample.d/server
StandardOutput=/var/log1.log
StandardError=/var/log2.log
Restart=always
[Install]
WantedBy=multi-user.target
请纠正我的做法。
【问题讨论】:
标签: linux centos7 systemd rhel rhel7