Spotter-VM/kanboard/setup/etc/init.d/kanboard

31 lines
499 B
Plaintext
Executable File

#!/sbin/openrc-run
description="KanBoard docker container"
depend() {
need docker postfix postgres
}
start() {
/usr/bin/docker run -d --rm \
--name kanboard \
-h kanboard \
--link postfix \
--link postgres \
-v /srv/kanboard/data:/srv/kanboard/data/files \
-v /srv/kanboard/conf/config.php:/srv/kanboard/config.php \
kanboard
}
start_post() {
/usr/bin/vmmgr register-proxy kanboard
}
stop_pre() {
/usr/bin/vmmgr unregister-proxy kanboard
}
stop() {
/usr/bin/docker stop kanboard
}