Skip to content

Commit

Permalink
add aesdsocket-start-stop
Browse files Browse the repository at this point in the history
  • Loading branch information
yinwenjie committed Aug 7, 2024
1 parent 3571592 commit 3c03e9c
Showing 1 changed file with 24 additions and 0 deletions.
24 changes: 24 additions & 0 deletions server/aesdsocket-start-stop
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#! /bin/bash

# Define start & stop function
start() {
echo "Starting aesdsocket"
start-stop-daemon -S --exec /usr/bin/aesdsocket -- -d
}
stop() {
echo "Stopping aesdsocket"
start-stop-daemon -K --exec /usr/bin/aesdsocket
rm /var/tmp/aesdsocketdata
}

case "$1" in
start)
start
;;
stop)
stop
;;
*)
echo "Usage: $0 {start|stop}"
esac
exit 0

0 comments on commit 3c03e9c

Please sign in to comment.