4 # If you use AppleTalk, Make sure not to start atalkd in the background:
5 # its data structures must have time to stablize before running the
8 ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
9 ATALK_UNIX_CHARSET='LOCALE'
10 ATALK_MAC_CHARSET='MAC_ROMAN'
15 AFPD_UAMLIST="-U uams_dhx.so,uams_dhx2.so"
17 CNID_CONFIG="-l log_note"
32 # . :ETCDIR:/netatalk.conf
34 if [ "${ATALKD_RUN}" != "no" ]; then
35 ebegin "Starting atalkd"
36 start-stop-daemon --start --quiet --exec :SBINDIR:/atalkd
40 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
41 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
43 ebegin " Registering $reg"
44 :BINDIR:/nbprgstr "$reg"
48 if [ "${PAPD_RUN}" = "yes" ]; then
49 ebegin " Starting papd"
50 start-stop-daemon --start --quiet --exec :SBINDIR:/papd
56 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
57 ebegin "Starting cnid_metad"
58 start-stop-daemon --start --quiet --exec :SBINDIR:/cnid_metad $CNID_CONFIG
63 if [ "${AFPD_RUN}" = "yes" ]; then
64 ebegin "Starting afpd"
65 start-stop-daemon --start --quiet --exec :SBINDIR:/afpd -- \
66 ${AFPD_UAMLIST} -g ${AFPD_GUEST} -c ${AFPD_MAX_CLIENTS} \
67 -n "${ATALK_NAME}${ATALK_ZONE}"
71 if [ "${TIMELORD_RUN}" = "yes" ]; then
72 ebegin "Starting timelord"
73 start-stop-daemon --start --quiet --exec :SBINDIR:/timelord
79 . :ETCDIR:/netatalk.conf
81 if [ x"${ATALK_BGROUND}" = x"yes" -a "${ATALKD_RUN}" != "no" ]; then
82 echo "Starting netatalk in the background ... "
83 atalk_startup >& /dev/null &
90 . :ETCDIR:/netatalk.conf
92 if [ "${AFPD_RUN}" = "yes" ]; then
93 ebegin "Stopping afpd"
94 start-stop-daemon --stop --quiet --exec :SBINDIR:/afpd
98 if [ "${TIMELORD_RUN}" = "yes" ]; then
99 ebegin "Stopping timelord"
100 start-stop-daemon --stop --quiet --exec :SBINDIR:/timelord
104 if [ "${ATALKD_RUN}" != "no" ]; then
105 if [ "${PAPD_RUN}" = "yes" ]; then
106 ebegin "Stopping papd"
107 start-stop-daemon --stop --quiet --exec :SBINDIR:/papd
112 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
113 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
115 ebegin "Unregistering $reg"
116 :BINDIR:/nbpunrgstr "$reg"
120 ebegin "Stopping atalkd"
121 start-stop-daemon --stop --quiet --exec :SBINDIR:/atalkd
125 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
126 ebegin "Stopping cnid_metad"
127 start-stop-daemon --stop --quiet --exec :SBINDIR:/cnid_metad