mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

21 lines
427 B

#!/bin/sh
#
# Desc: The PostgreSQL server
# Runlevel: 30 rcX
#
main_begin
block_begin(start, `Starting PostgreSQL Server.')
check(`(su postgres -c "D_prefix/bin/postmaster -i -S")')
block_end
block_begin(stop, `Stopping PostgreSQL Server.')
check(`killall postmaster')
block_end
block_begin(restart, `Restarting PostgreSQL Server.')
check(`killall -1 postmaster')
block_end
main_end