21 lines
		
	
	
		
			293 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			21 lines
		
	
	
		
			293 B
		
	
	
	
		
			Plaintext
		
	
	
		
			Executable File
		
	
	
	
	
| #!/sbin/openrc-run
 | |
| 
 | |
| description="Postfix docker container"
 | |
| 
 | |
| depend() {
 | |
| 	need docker
 | |
| }
 | |
| 
 | |
| start() {
 | |
| 	/usr/bin/docker run -d --rm \
 | |
| 	--name postfix \
 | |
| 	-h postfix \
 | |
| 	-v /srv/postfix/conf:/etc/postfix \
 | |
| 	-v /srv/postfix/data:/var/spool/postfix \
 | |
| 	postfix
 | |
| }
 | |
| 
 | |
| stop() {
 | |
| 	/usr/bin/docker stop postfix
 | |
| }
 |