Splux Linux

source-based Linux using SPS

SPS · log · files · refs · tags · releases · people · languages · GitHub · file

lib/setup/sv/openrc/postgresql


OpenRC runscript

329 bytes at 2909919 · 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 || :
}