คำถามติดแท็ก rhel7

8
วิธีเปลี่ยนเส้นทางเอาต์พุตของบริการ systemd ไปยังไฟล์
ฉันพยายามเปลี่ยนเส้นทางผลลัพธ์ของ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 โปรดแก้ไขวิธีการของฉัน
171 linux  centos7  systemd  rhel  rhel7 
โดยการใช้ไซต์ของเรา หมายความว่าคุณได้อ่านและทำความเข้าใจนโยบายคุกกี้และนโยบายความเป็นส่วนตัวของเราแล้ว
Licensed under cc by-sa 3.0 with attribution required.