# Source networking configuration.
. /etc/sysconfig/network
-test -x @sbindir@/atalkd || exit 0
+test -x @prefix@/sbin/atalkd || exit 0
test -f @CONFIG_DIR@/netatalk.conf || exit 0
# startup code for everything
atalk_startup() {
if [ x"${ATALKD_RUN}" != x"no" ]; then
- daemon @sbindir@/atalkd
+ daemon @prefix@/sbin/atalkd
RETVAL_ATALKD=$?
if [ -x @bindir@/nbprgstr ]; then
@bindir@/nbprgstr -p 4 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
fi
- if [ x"${PAPD_RUN}" = x"yes" -a -x @sbindir@/papd ]; then
- daemon @sbindir@/papd
+ if [ x"${PAPD_RUN}" = x"yes" -a -x @prefix@/sbin/papd ]; then
+ daemon @prefix@/sbin/papd
RETVAL_PAPD=$?
fi
fi
# check for timelord in sbin directory
- if [ -x @sbindir@/timelord ]; then
- daemon @sbindir@/timelord
+ if [ -x @prefix@/sbin/timelord ]; then
+ daemon @prefix@/sbin/timelord
fi
fi
- if [ x"${AFPD_RUN}" = x"yes" -a -x @sbindir@/afpd ] ; then
- daemon @sbindir@/afpd ${AFPD_UAMLIST} -g ${AFPD_GUEST} \
+ if [ x"${AFPD_RUN}" = x"yes" -a -x @prefix@/sbin/afpd ] ; then
+ daemon @prefix@/sbin/afpd ${AFPD_UAMLIST} -g ${AFPD_GUEST} \
-c ${AFPD_MAX_CLIENTS} -n "${ATALK_NAME}${ATALK_ZONE}"
RETVAL_AFPD=$?
fi
'stop')
echo -n 'Shutting down AppleTalk services: '
if [ x"${ATALKD_RUN}" != x"no" ]; then
- if [ x"${PAPD_RUN}" = x"yes" -a -x @sbindir@/papd ]; then
+ if [ x"${PAPD_RUN}" = x"yes" -a -x @prefix@/sbin/papd ]; then
killproc papd
RETVAL_PAPD=$?
fi
fi
# checking for timelord in sbin directory
- if [ -x @sbindir@/timelord ]; then
+ if [ -x @prefix@/sbin/timelord ]; then
killproc timelord
fi
@bindir@/nbpunrgstr "${ATALK_NAME}:netatalk${ATALK_ZONE}"
# kill atalkd last, since without it the plumbing goes away.
- if [ -x @sbindir@/atalkd ]; then
+ if [ -x @prefix@/sbin/atalkd ]; then
killproc atalkd
RETVAL_ATALKD=$?
fi
fi
# kill this separately as we also do AFP/tcp
- if [ x"${AFPD_RUN}" = x"yes" -a -x @sbindir@/afpd ]; then
+ if [ x"${AFPD_RUN}" = x"yes" -a -x @prefix@/sbin/afpd ]; then
killproc afpd
RETVAL_AFPD=$?
fi