Splux Linux

source-based Linux using SPS

sps-extra · log · files · refs · tags · releases · people · languages · GitHub · file

db/postgresql/files/openrc-postgresql


OpenRC runscript

329 bytes at e2d5247 · GitHub

#!/sbin/openrc-run
description="PostgreSQL database server"
command="/usr/bin/postgres"
command_args="-D /var/lib/postgres/data"
command_background="yes"
pidfile="/run/postgresql.pid"
command_user="postgres"

depend() {
    use net
    after net
}

start_pre() {
	install -d -m 0755 /run/postgresql /var/lib/postgres/data || :
}