Index: asterisk.c =================================================================== RCS file: /usr/cvsroot/asterisk/asterisk.c,v retrieving revision 1.182 diff -u -r1.182 asterisk.c --- asterisk.c 25 Sep 2005 16:52:04 -0000 1.182 +++ asterisk.c 28 Sep 2005 19:03:17 -0000 @@ -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)); Index: Makefile =================================================================== RCS file: /usr/cvsroot/asterisk/Makefile,v retrieving revision 1.210 diff -u -r1.210 Makefile --- Makefile 26 Sep 2005 17:17:56 -0000 1.210 +++ Makefile 28 Sep 2005 19:03:17 -0000 @@ -591,6 +591,7 @@ mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/tmp mkdir -p $(DESTDIR)$(ASTSPOOLDIR)/meetme install -m 755 asterisk $(DESTDIR)$(ASTSBINDIR)/ + install -m 755 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 \