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