summaryrefslogtreecommitdiff
path: root/packages/ser/files/init
blob: e7b70c41b43ecb56b07e7ab0d2538d1502f13e2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
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