added fixed ebuild (copied from godin's overlay):
- in sonar-4.x, thw web-direcotry is called web, not war - enewgroup and enewuser requires the "user" eclass
This commit is contained in:
		
							parent
							
								
									e7e6a81b03
								
							
						
					
					
						commit
						17d53d28cb
					
				
					 3 changed files with 100 additions and 0 deletions
				
			
		
							
								
								
									
										33
									
								
								dev-util/sonar-bin/files/init.sh
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										33
									
								
								dev-util/sonar-bin/files/init.sh
									
										
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,33 @@ | |||
| #!/sbin/runscript | ||||
| 
 | ||||
| depend() { | ||||
|     need net | ||||
|     use dns logger | ||||
| } | ||||
| 
 | ||||
| RUN_AS=sonar | ||||
| 
 | ||||
| MACHINE_TYPE=`getconf LONG_BIT` | ||||
| if [ "${MACHINE_TYPE}" = "64" ]; then | ||||
|   JSW=/opt/sonar/bin/linux-x86-64/sonar.sh | ||||
| else | ||||
|   JSW=/opt/sonar/bin/linux-x86-32/sonar.sh | ||||
| fi | ||||
| 
 | ||||
| checkconfig() { | ||||
|     return 0 | ||||
| } | ||||
| 
 | ||||
| start() { | ||||
|     checkconfig || return 1 | ||||
| 
 | ||||
|     ebegin "Starting ${SVCNAME}" | ||||
|     su $RUN_AS -c "$JSW start" | ||||
|     eend $? | ||||
| } | ||||
| 
 | ||||
| stop() { | ||||
|     ebegin "Stopping ${SVCNAME}" | ||||
|     su $RUN_AS -c "$JSW stop" | ||||
|     eend $? | ||||
| } | ||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue