mirror of
				https://github.com/asterisk/asterisk.git
				synced 2025-10-31 10:47:18 +00:00 
			
		
		
		
	install 'rasterisk' symlink and update process name when used remotely (issue #5318 with minor mod)
git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@6688 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
		
							
								
								
									
										1
									
								
								Makefile
									
									
									
									
									
								
							
							
						
						
									
										1
									
								
								Makefile
									
									
									
									
									
								
							| @@ -591,6 +591,7 @@ bininstall: all | ||||
| 	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 \ | ||||
|   | ||||
							
								
								
									
										10
									
								
								asterisk.c
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								asterisk.c
									
									
									
									
									
								
							| @@ -1969,6 +1969,16 @@ int main(int argc, char *argv[]) | ||||
| 		} | ||||
| 	} | ||||
|  | ||||
| 	/* 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)); | ||||
|   | ||||
		Reference in New Issue
	
	Block a user