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

21 lines
293 B
Plaintext
Raw Normal View History

2018-01-15 20:05:33 +01:00
#!/sbin/openrc-run
description="Postfix docker container"
depend() {
need docker
2018-01-15 20:05:33 +01:00
}
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
}