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

32 lines
598 B
Plaintext
Raw Normal View History

2018-01-24 15:18:55 +01:00
#!/sbin/openrc-run
description="Ushahidi docker container"
depend() {
need docker mariadb postfix
2018-01-24 15:18:55 +01:00
}
start() {
/usr/bin/docker run -d --rm \
--name ushahidi \
-h ushahidi \
--link mariadb \
2018-02-03 10:06:16 +01:00
--link postfix \
2018-01-27 14:35:16 +01:00
-v /srv/ushahidi/conf/env:/srv/ushahidi/platform/.env \
-v /srv/ushahidi/conf/config.json:/srv/ushahidi/config.json \
-v /srv/ushahidi/data:/srv/ushahidi/platform/application/media/uploads \
ushahidi
2018-01-24 15:18:55 +01:00
}
start_post() {
/usr/bin/spotter-appmgr register-proxy ushahidi
}
stop_pre() {
/usr/bin/spotter-appmgr unregister-proxy ushahidi
}
2018-01-24 15:18:55 +01:00
stop() {
/usr/bin/docker stop ushahidi
}