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

17 lines
307 B
Plaintext
Executable File

#!/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
}
stop() {
/usr/bin/docker stop postfix
}