postgresql.init.patch

text/plain

Filename: postgresql.init.patch
Type: text/plain
Part: 0
Message: Re: 7.2 RPMs (Re: [HACKERS] PostgreSQL v7.2rc2 Released)

Patch

Same data as JSON: GET /api/v1/attachments/:id/patch the parsed metadata as JSON — format, series position, per-file stats; never the diff bytes. API reference →
Format: context
File+
postgresql.init 7 3
*** postgresql.init.orig	Tue Jan 29 13:16:20 2002
--- postgresql.init	Tue Jan 29 13:23:33 2002
***************
*** 205,210 ****
--- 205,213 ----
      [ -e /var/lock/subsys/postgresql ] && restart || :
  }
  
+ reload(){
+     su -l postgres -s /bin/sh -c "/usr/bin/pg_ctl reload -D $PGDATA -s" > /dev/null 2>&1
+ }
  
  # This script is slightly unusual in that the name of the daemon (postmaster)
  # is not the same as the name of the subsystem (postgresql)
***************
*** 226,236 ****
    condrestart)
  	condrestart
  	;;
    *)
! 	echo $"Usage: $0 {start|stop|status|restart|condrestart}"
  	exit 1
  esac
  
  exit 0
- 
- 
--- 229,240 ----
    condrestart)
  	condrestart
  	;;
+   reload|force-reload)
+ 	reload
+ 	;;
    *)
! 	echo $"Usage: $0 {start|stop|status|restart|condrestart|reload|force-reload}"
  	exit 1
  esac
  
  exit 0