remove outdated redhat init script and provide the updated one in 'make rpm' (issue...
authorRussell Bryant <russell@russellbryant.com>
Wed, 30 Nov 2005 21:30:18 +0000 (21:30 +0000)
committerRussell Bryant <russell@russellbryant.com>
Wed, 30 Nov 2005 21:30:18 +0000 (21:30 +0000)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@7243 65c4cc65-6c06-0410-ace0-fbb531ad65f3

Makefile
redhat/asterisk [deleted file]

index 9c3f60d..f2bb7ad 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -836,7 +836,7 @@ __rpm: include/asterisk/version.h spec
        $(MAKE) DESTDIR=/tmp/asterisk install ; \
        $(MAKE) DESTDIR=/tmp/asterisk samples ; \
        mkdir -p /tmp/asterisk/etc/rc.d/init.d ; \
-       cp -f redhat/asterisk /tmp/asterisk/etc/rc.d/init.d/ ; \
+       cp -f contrib/init.d/rc.redhat.asterisk /tmp/asterisk/etc/rc.d/init.d/asterisk ; \
        rpmbuild --rcfile /usr/lib/rpm/rpmrc:redhat/rpmrc -bb asterisk.spec
 
 progdocs:
diff --git a/redhat/asterisk b/redhat/asterisk
deleted file mode 100644 (file)
index a6d4f9a..0000000
+++ /dev/null
@@ -1,45 +0,0 @@
-#!/bin/bash
-#
-# chkconfig: 2345 99 15
-# description: Open source PBX 
-# processname: asterisk
-
-# source function library
-. /etc/rc.d/init.d/functions
-
-RETVAL=0
-
-case "$1" in
-  start)
-       echo -n "Starting Asterisk PBX: "
-       /sbin/modprobe ixj      
-       daemon /usr/sbin/asterisk
-       RETVAL=$?
-       echo
-       [ $RETVAL -eq 0 ] && touch /var/lock/subsys/asterisk
-       ;;
-  stop)
-       echo -n "Shutting Asterisk PBX: "
-       killproc asterisk
-       /sbin/rmmod -r ixj      
-       RETVAL=$?
-
-       echo
-       [ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/asterisk
-       ;;
-  restart|reload)
-       $0 stop
-       $0 start
-       RETVAL=$?
-       ;;
-  status)
-       status asterisk
-       RETVAL=$?
-       ;;
-  *)
-       echo "Usage: asterisk {start|stop|status|restart|reload}"
-       exit 1
-esac
-
-exit $RETVAL
-