mirror of
https://github.com/vdsm/virtual-dsm.git
synced 2025-06-07 08:57:33 +08:00
/var/lock/subsys
This commit is contained in:
parent
ddadb5d97d
commit
f08a514f2f
@ -16,6 +16,7 @@ start() {
|
||||
echo 'Service already running'
|
||||
return 1
|
||||
fi
|
||||
touch /var/lock/subsys/agent.sh
|
||||
echo 'Starting agent service...'
|
||||
chmod 666 /dev/ttyS0
|
||||
"$SCRIPT" &> /dev/ttyS0 & echo $! > "$PIDFILE"
|
||||
@ -27,6 +28,7 @@ stop() {
|
||||
echo 'Service not running'
|
||||
return 1
|
||||
fi
|
||||
rm -f /var/lock/subsys/agent.sh
|
||||
echo 'Stopping agent service...'
|
||||
chmod 666 /dev/ttyS0
|
||||
echo 'Stopping agent service...' > /dev/ttyS0
|
||||
|
Loading…
x
Reference in New Issue
Block a user