2018-01-15 20:05:33 +01:00
|
|
|
#!/sbin/openrc-run
|
|
|
|
|
|
|
|
description="Postfix docker container"
|
|
|
|
|
|
|
|
depend() {
|
2018-04-29 20:48:57 +02:00
|
|
|
need docker
|
2018-01-15 20:05:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
start() {
|
2018-01-27 14:08:19 +01:00
|
|
|
/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
|
|
|
|
}
|