|
|
@ -7,15 +7,15 @@ |
|
|
|
main_begin |
|
|
|
|
|
|
|
block_begin(start, `Starting PostgreSQL Server.') |
|
|
|
check(`(su postgres -c "D_prefix/bin/postmaster -i -S")') |
|
|
|
check(`(su postgres -c "D_prefix/bin/postgres -i&")') |
|
|
|
block_end |
|
|
|
|
|
|
|
block_begin(stop, `Stopping PostgreSQL Server.') |
|
|
|
check(`killall postmaster') |
|
|
|
check(`killall postgres') |
|
|
|
block_end |
|
|
|
|
|
|
|
block_begin(restart, `Restarting PostgreSQL Server.') |
|
|
|
check(`killall -1 postmaster') |
|
|
|
check(`killall -1 postgres') |
|
|
|
block_end |
|
|
|
|
|
|
|
main_end |