From 1a891b97f3fd49ef9113db67f7d6be17671a4db9 Mon Sep 17 00:00:00 2001 From: tnut Date: Tue, 3 Apr 2012 20:44:08 +0200 Subject: postgresql est un service --- libpostgresql/nutyx-01.patch | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 libpostgresql/nutyx-01.patch (limited to 'libpostgresql/nutyx-01.patch') diff --git a/libpostgresql/nutyx-01.patch b/libpostgresql/nutyx-01.patch new file mode 100644 index 000000000..a1b1585d9 --- /dev/null +++ b/libpostgresql/nutyx-01.patch @@ -0,0 +1,21 @@ +--- blfs-bootscripts-20090302/blfs/init.d/postgresql.original 2010-01-20 20:34:28.000000000 +0000 ++++ blfs-bootscripts-20090302/blfs/init.d/postgresql 2010-01-20 20:37:49.000000000 +0000 +@@ -10,6 +10,18 @@ + . /etc/sysconfig/rc + . $rc_functions + ++newgroup=postgres ++newuser=postgres ++newid=40 ++ ++# check for mysql group or add one ++getent group $newgroup > /dev/null || /usr/sbin/groupadd -g $newid $newgroup ++ ++# check for mysql user or add one ++getent passwd $newuser > /dev/null || /usr/sbin/useradd -g $newgroup \ ++-u $newid -d /dev/null \ ++-s /bin/false -c "PostgreSQL Server" $newuser ++ + case "$1" in + start) + boot_mesg "Starting PostgreSQL daemon..." -- cgit v1.2.3-70-g09d2