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

32 lines
580 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() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr register-proxy ushahidi
}
stop_pre() {
2018-09-04 21:42:26 +02:00
/usr/bin/vmmgr unregister-proxy ushahidi
}
2018-01-24 15:18:55 +01:00
stop() {
/usr/bin/docker stop ushahidi
}