mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-08 01:18:32 +08:00
Redirect output to /dev/ttyS0
This commit is contained in:
parent
068c82faf9
commit
e4d29321d4
@ -1,7 +1,6 @@
|
||||
#!/bin/bash
|
||||
|
||||
PIDFILE="/var/run/agent.pid"
|
||||
LOGFILE="/var/log/agent.log"
|
||||
SCRIPT="/usr/local/bin/agent.sh"
|
||||
|
||||
status() {
|
||||
@ -17,7 +16,8 @@ start() {
|
||||
return 1
|
||||
fi
|
||||
printf 'Starting agent service...' >&2
|
||||
"$SCRIPT" &> "$LOGFILE" & echo $! > "$PIDFILE"
|
||||
chmod 666 /dev/ttyS0
|
||||
"$SCRIPT" &> /dev/ttyS0 & echo $! > "$PIDFILE"
|
||||
}
|
||||
|
||||
stop() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user