diff options
Diffstat (limited to 'main/pgpool/pgpool.initd')
-rw-r--r-- | main/pgpool/pgpool.initd | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/main/pgpool/pgpool.initd b/main/pgpool/pgpool.initd index 1881a1a5935..effd4a75f26 100644 --- a/main/pgpool/pgpool.initd +++ b/main/pgpool/pgpool.initd @@ -1,5 +1,6 @@ #!/sbin/openrc-run +: ${command_user:="postgres:postgres"} : ${config_file:="/etc/pgpool/pgpool.conf"} : ${hba_file:="/etc/pgpool/pool_hba.conf"} : ${key_file:="/etc/pgpool/pool_key"} @@ -30,5 +31,5 @@ depend() { start_pre() { # pgpool creates /run/pgpool/pgpool.pid file even with --dont-detach. >_< - checkpath -d -m 0755 /run/pgpool + checkpath -d -m 0750 -o "$command_user" /run/pgpool } |