[Asterisk-cvs] asterisk Makefile, 1.210, 1.211 asterisk.c, 1.182,
1.183
kpfleming
kpfleming
Wed Sep 28 22:41:47 CDT 2005
Update of /usr/cvsroot/asterisk
In directory mongoose.digium.com:/tmp/cvs-serv9178
Modified Files:
Makefile asterisk.c
Log Message:
install 'rasterisk' symlink and update process name when used remotely (issue #5318 with minor mod)
Index: Makefile
===================================================================
RCS file: /usr/cvsroot/asterisk/Makefile,v
retrieving revision 1.210
retrieving revision 1.211
diff -u -d -r1.210 -r1.211
--- Makefile 26 Sep 2005 17:17:56 -0000 1.210
+++ Makefile 29 Sep 2005 02:38:24 -0000 1.211
@@ -591,6 +591,7 @@
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/tmp
mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/meetme
install -m 755 asterisk $(DESTDIR)$(ASTSBINDIR)/
+ ln -sf asterisk $(DESTDIR)$(ASTSBINDIR)/rasterisk
install -m 755 contrib/scripts/astgenkey $(DESTDIR)$(ASTSBINDIR)/
install -m 755 contrib/scripts/autosupport $(DESTDIR)$(ASTSBINDIR)/
if [ ! -f $(DESTDIR)$(ASTSBINDIR)/safe_asterisk ]; then \
Index: asterisk.c
===================================================================
RCS file: /usr/cvsroot/asterisk/asterisk.c,v
retrieving revision 1.182
retrieving revision 1.183
diff -u -d -r1.182 -r1.183
--- asterisk.c 25 Sep 2005 16:52:04 -0000 1.182
+++ asterisk.c 29 Sep 2005 02:38:24 -0000 1.183
@@ -1969,6 +1969,16 @@
}
}
+ /* For remote connections, change the name of the remote connection.
+ * We do this for the benefit of init scripts (which need to know if/when
+ * the main asterisk process has died yet). */
+ if (option_remote) {
+ strcpy(argv[0], "rasterisk");
+ for (x = 1; x < argc; x++) {
+ argv[x] = argv[0] + 10;
+ }
+ }
+
if (option_dumpcore) {
struct rlimit l;
memset(&l, 0, sizeof(l));
More information about the svn-commits
mailing list