: # Standard directory variables from autoconf prefix=@prefix@ datarootdir=@datarootdir@ exec_prefix=@exec_prefix@ bindir=@bindir@ sbindir=@sbindir@ libexecdir=@libexecdir@ datadir=${datarootdir} sysconfdir=@sysconfdir@ scd=$(sysconfdir) libdir=@libdir@ sharedlibdir=$(libdir)/shared mandir=@mandir@ includedir=@includedir@ localstatedir=@localstatedir@ RUNDIR=${localstatedir}/run/printqd LOGDIR=${localstatedir}/log/printqd DBDIR=${localstatedir}/printqd LPUSER=@LPUSER@ LPGROUP=@LPGROUP@ . ${sysconfdir}/rc.d/init.d/functions start() { [ -d $RUNDIR ] || mkdir -p $RUNDIR [ -d $LOGDIR ] || mkdir -p $LOGDIR [ -d $DBDIR ] || mkdir -p $DBDIR chown -R ${LPUSER}:${LPGROUP} $RUNDIR chown -R ${LPUSER}:${LPGROUP} $LOGDIR chown -R ${LPUSER}:${LPGROUP} $DBDIR chmod -R 770 $RUNDIR chmod -R 770 $LOGDIR chmod -R 770 $DBDIR ${sbindir}/printqd } stop() { killproc printqd } case "$*" in "start") start ;; "stop") stop ;; "restart") stop sleep 1 start sleep 1 ;; esac