32 lines
		
	
	
		
			513 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			513 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #!/sbin/openrc-run
 | |
| 
 | |
| description="Pan.do/ra docker container"
 | |
| 
 | |
| depend() {
 | |
| 	need docker postfix postgres rabbitmq
 | |
| }
 | |
| 
 | |
| start() {
 | |
| 	/usr/bin/docker run -d --rm \
 | |
| 	--name pandora \
 | |
| 	-h pandora \
 | |
| 	--link postfix \
 | |
| 	--link postgres \
 | |
| 	--link rabbitmq \
 | |
| 	-v /srv/pandora/conf:/srv/pandora/conf \
 | |
| 	-v /srv/pandora/data:/srv/pandora/data \
 | |
| 	pandora
 | |
| }
 | |
| 
 | |
| start_post() {
 | |
| 	/usr/bin/spotter-appmgr register-proxy pandora
 | |
| }
 | |
| 
 | |
| stop_pre() {
 | |
| 	/usr/bin/spotter-appmgr unregister-proxy pandora
 | |
| }
 | |
| 
 | |
| stop() {
 | |
| 	/usr/bin/docker stop pandora
 | |
| }
 |