summaryrefslogtreecommitdiff
path: root/misc/mon_ami/mon-ami
diff options
context:
space:
mode:
authorStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
committerStefan Wintermeyer <stefan.wintermeyer@amooma.de>2013-01-22 15:33:06 +0100
commit39aa7132ceed3d4beab3a9b828e571bbfc67c07e (patch)
tree6c88289c9f99be0af8635636fcdf64102090e5ec /misc/mon_ami/mon-ami
parent5ad8203ce4f1bfea997960d0b52c626dea24b944 (diff)
parent6f69c1a85055ec7c2515719d79d2a7a4e60cec50 (diff)
Merge branch 'develop'5.1-beta1
Diffstat (limited to 'misc/mon_ami/mon-ami')
-rwxr-xr-xmisc/mon_ami/mon-ami58
1 files changed, 0 insertions, 58 deletions
diff --git a/misc/mon_ami/mon-ami b/misc/mon_ami/mon-ami
deleted file mode 100755
index a630140..0000000
--- a/misc/mon_ami/mon-ami
+++ /dev/null
@@ -1,58 +0,0 @@
-#!/bin/sh
-
-#####################################################################
-# MonAMI Asterisk Manger Interface Emulator
-# Start Script
-# (c) AMOOMA GmbH 2012
-#####################################################################
-
-### BEGIN INIT INFO
-# Provides: mon_ami
-# Required-Start: freeswitch
-# Required-Stop: freeswitch
-# Default-Start: 2 3 4 5
-# Default-Stop: 0 1 6
-# Short-Description: MonAMI Asterisk Manger Interface Emulator
-# Description:
-#
-### END INIT INFO
-
-DAEMON=/opt/GS5/misc/mon_ami/mon_ami
-EXECUTABLE=`basename 'mon_ami'`
-DESC="MonAMI Asterisk Manger Interface Emulator"
-ARGS="--log-file=/var/log/mon_ami.log"
-
-if ! [ -x $DAEMON ] ; then
- echo "ERROR: $DAEMON not found"
- exit 1
-fi
-
-case "$1" in
- start)
- echo -n "Starting $DESC: "
- start-stop-daemon --start --pidfile /var/run/$EXECUTABLE.pid \
- --make-pidfile --background --startas $DAEMON -- $ARGS
- echo "$EXECUTABLE."
- ;;
-
- stop)
- echo -n "Stopping $DESC: "
- start-stop-daemon --stop --quiet --oknodo --retry=TERM/30/KILL/5 \
- --pidfile /var/run/$EXECUTABLE.pid
- rm -f /var/run/$NAME.pid
- echo "$EXECUTABLE."
- ;;
-
- reload|restart|force-reload)
- $0 stop
- sleep 2
- $0 start
- ;;
-
- *)
- echo "Usage: $0 {start|stop|restart|reload|force-reload}" >&2
- exit 1
- ;;
-esac
-
-exit 0