Skip to content

Commit

Permalink
CA-314717 Explicit stdout and stderr for scan services
Browse files Browse the repository at this point in the history
Since these are kicked by a pipe, explicitly prevent systemd from
putting their stdout and stderr on the same pipe so that they can't kick
themselves.

Signed-off-by: Tim Smith <tim.smith@citrix.com>
  • Loading branch information
TimSmithCtx authored and MarkSymsCtx committed Apr 10, 2019
1 parent fb9d0f1 commit 8a49006
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions systemd/mpathcount.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ Description=Multipath scanner

[Service]
StandardInput=socket
StandardOutput=null
StandardError=journal
ExecStart=/usr/bin/sh -c '. /etc/xensource-inventory; while dd of=/dev/null bs=4096 count=1 status=none conv=noerror; do /opt/xensource/sm/mpathcount.py; done'
Restart=always
2 changes: 2 additions & 0 deletions systemd/usb-scan.service
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,7 @@ Description=USB device scanner

[Service]
StandardInput=socket
StandardOutput=null
StandardError=journal
ExecStart=/usr/bin/sh -c '. /etc/xensource-inventory; while dd of=/dev/null bs=4096 count=1 status=none conv=noerror; do /opt/xensource/bin/xe pusb-scan host-uuid=$${INSTALLATION_UUID}; done'
Restart=always

0 comments on commit 8a49006

Please sign in to comment.