#! /bin/sh # # service-courier-authlib-run # John Simpson 2006-03-09 # # "run" script for making courier-authlib run under daemontools # ############################################################################### # # Copyright (C) 2006 John Simpson. # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License, version 2, as # published by the Free Software Foundation. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA # or visit http://www.gnu.org/licenses/gpl.txt # ############################################################################### conf="/etc/authlib/authdaemonrc" prog="/usr/libexec/courier-authlib/authdaemond" if [ ! -f $conf ] then echo $conf does not exist sleep 5 exit 1 fi if [ ! -e $prog ] then echo $prog does not exist or is not executable sleep 5 exit 1 fi set -a . $conf exec $prog 2>&1 echo exec $prog failed sleep 5 exit 1