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

20 lines
235 B
Plaintext
Executable File

#!/sbin/openrc-run
description="Postgres container"
depend() {
need cgroups
}
start() {
lxc-start postgres
}
start_post() {
ewaitfile 60 /var/lib/lxc/postgres/delta0/run/postgresql/.s.PGSQL.5432
}
stop() {
lxc-stop postgres
}