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

  1. #!/bin/sh
  2. #
  3. # Desc: The PostgreSQL server
  4. # Runlevel: 30 rcX
  5. #
  6. main_begin
  7. block_begin(start, `Starting PostgreSQL Server.')
  8. check(`(su postgres -c "D_prefix/bin/postmaster -i -S")')
  9. block_end
  10. block_begin(stop, `Stopping PostgreSQL Server.')
  11. check(`killall postmaster')
  12. block_end
  13. block_begin(restart, `Restarting PostgreSQL Server.')
  14. check(`killall -1 postmaster')
  15. block_end
  16. main_end