Spotter-VM/postfix/etc/init.d/postfix

22 lines
322 B
Plaintext
Raw Normal View History

2018-01-15 20:05:33 +01:00
#!/sbin/openrc-run
description="Postfix docker container"
depend() {
need docker net
use dns logger netmount
}
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
2018-01-15 20:05:33 +01:00
}
stop() {
/usr/bin/docker stop postfix
}