diff options
Diffstat (limited to 'databases/slony1v2/files')
-rw-r--r-- | databases/slony1v2/files/pkg-message.in | 26 | ||||
-rw-r--r-- | databases/slony1v2/files/slon-mkservice.sh.in | 38 | ||||
-rw-r--r-- | databases/slony1v2/files/slon.conf-sample | 16 | ||||
-rw-r--r-- | databases/slony1v2/files/slon.sh.in | 30 |
4 files changed, 0 insertions, 110 deletions
diff --git a/databases/slony1v2/files/pkg-message.in b/databases/slony1v2/files/pkg-message.in deleted file mode 100644 index d63faf0d7d1b..000000000000 --- a/databases/slony1v2/files/pkg-message.in +++ /dev/null @@ -1,26 +0,0 @@ -********************************************************************** - - -Please read the docs on configuring and runing slony-1. Unless you specified -NOPORTDOCS, they are in the %%LOCALBASE%%/share/doc/slony1 directory. - -If you are upgrading from a prior version of slony, please read the UPGRADING -file in the above docs directory. - -The script %%LOCALBASE%%/sbin/slon-mkservice can be used to create a control -directory to run and monitor the slon daemon under svscan from daemontools. -If you use this, be sure not to set slon_enable="YES" in /etc/rc.conf. - -If you prefer to use the standard startup script in %%LOCALBASE%%/etc/rc.d then -set slon_enable="YES" in /etc/rc.conf to enable the slon.sh script. - -To use either of the above startup configurations, you will need to set up a -%%LOCALBASE%%/etc/slon.conf file to tell slon what to replicate. This file -is documented in %%LOCALBASE%%/share/doc/slony1/adminguide/runtime-config.html - -%%PERLTOOLS%%To use the perl slony configuration and monitoring tools, you must -%%PERLTOOLS%%create %%LOCALBASE%%/etc/slon_tools.conf based on the sample file. - - - -********************************************************************** diff --git a/databases/slony1v2/files/slon-mkservice.sh.in b/databases/slony1v2/files/slon-mkservice.sh.in deleted file mode 100644 index ea77e07c0677..000000000000 --- a/databases/slony1v2/files/slon-mkservice.sh.in +++ /dev/null @@ -1,38 +0,0 @@ -#!/bin/sh - -# create a slon service directory for use with svscan from deamontools - -echo -n 'specify directory for "slon" service like "/var/slon-master": ' -read DIR -if [ -z "$DIR" ]; then - echo "Directory must be non-empty" - exit 1; -fi - -echo -n 'System user name for programs to run under (default pgsql): ' -read sysuser -if [ -z "$sysuser" ]; then - echo "User name pgsql being used." - sysuser='pgsql' -fi - -mkdir -p ${DIR}/env ${DIR}/supervise || exit 1 -mkdir -p ${DIR}/log/main ${DIR}/log/supervise || exit 1 - -cat > ${DIR}/run <<EOF -#!/bin/sh -exec 2>&1 - -exec envdir ./env sh -c 'exec setuidgid ${sysuser} slon -f \${CONFIGFILE}' -EOF -chmod +x ${DIR}/run - -cat >${DIR}/log/run <<EOF -#!/bin/sh -exec setuidgid ${sysuser} multilog t ./main -EOF -chmod +x ${DIR}/log/run - -echo "%%PREFIX%%/etc/slon.conf" > ${DIR}/env/CONFIGFILE - -chown -R ${sysuser} ${DIR} diff --git a/databases/slony1v2/files/slon.conf-sample b/databases/slony1v2/files/slon.conf-sample deleted file mode 100644 index 96e94209ca01..000000000000 --- a/databases/slony1v2/files/slon.conf-sample +++ /dev/null @@ -1,16 +0,0 @@ -# sample config file. see share/doc/slony1/runtime-config.html -# values are overridden by command line options. -# not all settings are shown here. - -syslog 0 -log_level 4 -log_timestamp 1 - -cluster_name sample -conn_info 'dbname=pgbench user=postgres host=localhost port=5432' - -#sync_interval 100 -#sync_interval_timeout 1000 -#sync_group_maxsize 6 -#vac_frequency 3 -#desired_sync_time 60000 diff --git a/databases/slony1v2/files/slon.sh.in b/databases/slony1v2/files/slon.sh.in deleted file mode 100644 index 6f2ee3c82feb..000000000000 --- a/databases/slony1v2/files/slon.sh.in +++ /dev/null @@ -1,30 +0,0 @@ -#!/bin/sh -# -# $FreeBSD$ -# - -# PROVIDE: %%NAME%% -# REQUIRE: postgresql -# KEYWORD: shutdown - -# Add the following line to /etc/rc.conf to enable `%%NAME%%': -# -#%%NAME%%_enable="YES" -# -# and be sure to configure %%PREFIX%%/etc/%%NAME%%.conf - -. "%%RC_SUBR%%" - -name="%%NAME%%" -rcvar=`set_rcvar` - -pidfile="/var/run/$name.pid" -command="%%PREFIX%%/bin/slon" -command_args="-f %%PREFIX%%/etc/$name.conf -p $pidfile &" -required_files="%%PREFIX%%/etc/$name.conf" - -# read configuration and set defaults -load_rc_config "$name" -: ${%%NAME%%_enable="NO"} - -run_rc_command "$1" |