#!/bin/sh # create a slon service directory for use with svscan from daemontools 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 <&1 exec envdir ./env sh -c 'exec setuidgid ${sysuser} slon -f \${CONFIGFILE}' EOF chmod +x ${DIR}/run cat >${DIR}/log/run < ${DIR}/env/CONFIGFILE chown -R ${sysuser} ${DIR} f='https://www.csie.ntu.edu.tw/~b01902062/git/freebsd-ports-gnome' title='freebsd-ports-gnome Git repository'/>
aboutsummaryrefslogtreecommitdiffstats
Commit message (Expand)AuthorAgeFilesLines
* By request, reset maintainership of multiple portseadler2015-05-041-1/+1
* Adopt portpawel2015-02-061-1/+1
* Replace USES=libtool:oldver with USES=libtool or USES=libtool:keepla intijl2014-12-091-1/+1
* Clean up plistbapt2014-10-27