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

31 lines
517 B
Plaintext
Raw Normal View History

2018-01-02 11:19:00 +01:00
#!/sbin/openrc-run
description="KanBoard docker container"
depend() {
need docker postfix postgres
2018-01-02 11:19:00 +01:00
}
start() {
/usr/bin/docker run -d --rm \
--name kanboard \
-h kanboard \
2018-02-01 21:04:01 +01:00
--link postfix \
--link postgres \
-v /srv/kanboard/data:/srv/kanboard/data/files \
-v /srv/kanboard/conf/config.php:/srv/kanboard/config.php \
kanboard
2018-01-02 11:19:00 +01:00
}
start_post() {
/usr/bin/spotter-appmgr register-proxy kanboard
}
stop_pre() {
/usr/bin/spotter-appmgr unregister-proxy kanboard
}
2018-01-02 11:19:00 +01:00
stop() {
/usr/bin/docker stop kanboard
}