Lines 35-41
Link Here
|
35 |
name=postgresql |
35 |
name=postgresql |
36 |
rcvar=`set_rcvar` |
36 |
rcvar=`set_rcvar` |
37 |
command=${prefix}/bin/pg_ctl |
37 |
command=${prefix}/bin/pg_ctl |
38 |
command_args="-D ${postgresql_data} ${postgresql_flags} $1" |
38 |
command_args="-D ${postgresql_data} ${postgresql_flags}" |
39 |
extra_commands="reload initdb" |
39 |
extra_commands="reload initdb" |
40 |
|
40 |
|
41 |
start_cmd="postgresql_command start" |
41 |
start_cmd="postgresql_command start" |
Lines 48-54
Link Here
|
48 |
|
48 |
|
49 |
postgresql_command() |
49 |
postgresql_command() |
50 |
{ |
50 |
{ |
51 |
su -l ${postgresql_user} -c "exec ${command} ${command_args}" |
51 |
su -l ${postgresql_user} -c "exec ${command} ${command_args} ${rc_arg}" |
52 |
} |
52 |
} |
53 |
|
53 |
|
54 |
postgresql_initdb() |
54 |
postgresql_initdb() |