3 # AppleTalk daemons. Make sure not to start atalkd in the background:
4 # its data structures must have time to stablize before running the
13 # . :ETCDIR:/netatalk.conf
15 if [ "${ATALKD_RUN}" != "no" ]; then
16 ebegin "Starting atalkd"
17 start-stop-daemon --start --quiet --exec :SBINDIR:/atalkd
21 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
22 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
24 ebegin " Registering $reg"
25 :BINDIR:/nbprgstr "$reg"
29 if [ "${PAPD_RUN}" = "yes" ]; then
30 ebegin " Starting papd"
31 start-stop-daemon --start --quiet --exec :SBINDIR:/papd
37 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
38 ebegin "Starting cnid_metad"
39 if [ "x$CNID_DBD_LOGCONFIG" = "x" ]; then
40 start-stop-daemon --start --quiet --exec :SBINDIR:/cnid_metad
42 start-stop-daemon --start --quiet --exec :SBINDIR:/cnid_metad -l "$CNID_DBD_LOGCONFIG"
48 if [ "${AFPD_RUN}" = "yes" ]; then
49 ebegin "Starting afpd"
50 start-stop-daemon --start --quiet --exec :SBINDIR:/afpd -- \
51 ${AFPD_UAMLIST} -g ${AFPD_GUEST} -c ${AFPD_MAX_CLIENTS} \
52 -n "${ATALK_NAME}${ATALK_ZONE}"
56 if [ "${TIMELORD_RUN}" = "yes" ]; then
57 ebegin "Starting timelord"
58 start-stop-daemon --start --quiet --exec :SBINDIR:/timelord
64 . :ETCDIR:/netatalk.conf
66 if [ x"${ATALK_BGROUND}" = x"yes" ]; then
67 echo "Starting netatalk in the background ... "
68 atalk_startup >& /dev/null &
75 . :ETCDIR:/netatalk.conf
77 if [ "${AFPD_RUN}" = "yes" ]; then
78 ebegin "Stopping afpd"
79 start-stop-daemon --stop --quiet --exec :SBINDIR:/afpd
83 if [ "${TIMELORD_RUN}" = "yes" ]; then
84 ebegin "Stopping timelord"
85 start-stop-daemon --stop --quiet --exec :SBINDIR:/timelord
89 if [ "${ATALKD_RUN}" != "no" ]; then
90 if [ "${PAPD_RUN}" = "yes" ]; then
91 ebegin "Stopping papd"
92 start-stop-daemon --stop --quiet --exec :SBINDIR:/papd
97 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
98 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
100 ebegin "Unregistering $reg"
101 :BINDIR:/nbpunrgstr "$reg"
105 ebegin "Stopping atalkd"
106 start-stop-daemon --stop --quiet --exec :SBINDIR:/atalkd
110 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
111 ebegin "Stopping cnid_metad"
112 start-stop-daemon --stop --quiet --exec :SBINDIR:/cnid_metad