diff options
Diffstat (limited to 'recipes/ser/files/init')
-rw-r--r-- | recipes/ser/files/init | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/recipes/ser/files/init b/recipes/ser/files/init new file mode 100644 index 0000000000..e7b70c41b4 --- /dev/null +++ b/recipes/ser/files/init @@ -0,0 +1,27 @@ +#!/bin/sh + +PATH=/bin:/usr/bin:/sbin:/usr/sbin + +case "$1" in + start) + echo -n "Starting SIP Express Router" + serctl start + echo "." + ;; + stop) + echo -n "Stopping SIP Express Router" + serctl stop + echo "." + ;; + restart) + echo -n "Restarting SIP Express Router" + serctl restart + echo "." + ;; + *) + echo "Usage: $0 {start|stop|restart}" + exit 1 + ;; +esac + +exit 0 |