Browse Source

runit: changed postgresql integration to use a "tail" template instead of the various older "txt" templates

stable/0.6
Christian Wiese 14 years ago committed by Christian Wiese
parent
commit
67371ff2ec
  1. 1
      base/runit/packages/postgresql-env_LOGDIR.txt
  2. 1
      base/runit/packages/postgresql-env_PGDATA.txt
  3. 23
      base/runit/packages/postgresql-log_run.txt
  4. 2
      base/runit/packages/postgresql-postgresql.tail
  5. 18
      base/runit/packages/postgresql-run.txt

1
base/runit/packages/postgresql-env_LOGDIR.txt

@ -1 +0,0 @@
D_logdir

1
base/runit/packages/postgresql-env_PGDATA.txt

@ -1 +0,0 @@
D_localstatedir/data

23
base/runit/packages/postgresql-log_run.txt

@ -1,23 +0,0 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../runit/packages/postgresql-log_run.txt
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
exec 2>&1
LOGDIR=$( cat ../env/LOGDIR )
if [ ! -d $LOGDIR ]; then
mkdir -p $LOGDIR
chown log $LOGDIR
fi
exec chpst -ulog svlogd -t $LOGDIR

2
base/runit/packages/postgresql-postgresql.tail

@ -0,0 +1,2 @@
run envdir ./env setuidgid postgres D_bindir/postmaster -i
log postgresql

18
base/runit/packages/postgresql-run.txt

@ -1,18 +0,0 @@
#!/bin/sh
# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../runit/packages/postgresql-run.txt
# Copyright (C) 2007 The OpenSDE Project
# Copyright (C) 2006 The T2 SDE Project
#
# More information can be found in the files COPYING and README.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; version 2 of the License. A copy of the
# GNU General Public License can be found in the file COPYING.
# --- SDE-COPYRIGHT-NOTE-END ---
exec 2>&1
exec envdir ./env setuidgid postgres D_bindir/postmaster -i
Loading…
Cancel
Save