diff options
Diffstat (limited to 'package/opensips/files/opensips.init')
-rw-r--r-- | package/opensips/files/opensips.init | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/package/opensips/files/opensips.init b/package/opensips/files/opensips.init new file mode 100644 index 000000000..8f231a14a --- /dev/null +++ b/package/opensips/files/opensips.init @@ -0,0 +1,26 @@ +#!/bin/sh +#FWINIT 60 +. /etc/rc.conf + +case $1 in +autostop) ;; +autostart) + test x"${opensips:-NO}" = x"NO" && exit 0 + exec sh $0 start + ;; +start) + /usr/sbin/opensips + ;; +stop) + killall opensips + ;; +restart) + sh $0 stop + sh $0 start + ;; +*) + echo "usage: $0 {start | stop | restart}" + exit 1 + ;; +esac +exit $? |