mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2026-11-11 08:42:42 +01:00
Redirect output to /dev/ttyS0
This commit is contained in:
1 parent
068c82faf9
commit
e4d29321d4
1 file changed
+2
-2
+2
-2
@@ -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() {
|
||||
|
||||
Reference in new issue
Block a user