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 -- \
64 if [ "${AFPD_RUN}" = "yes" ]; then
65 ebegin "Starting afpd"
66 start-stop-daemon --start --quiet --exec :SBINDIR:/afpd -- \
67 ${AFPD_UAMLIST} -g ${AFPD_GUEST} -c ${AFPD_MAX_CLIENTS} \
68 -n "${ATALK_NAME}${ATALK_ZONE}"
72 if [ "${TIMELORD_RUN}" = "yes" ]; then
73 ebegin "Starting timelord"
74 start-stop-daemon --start --quiet --exec :SBINDIR:/timelord
80 . :ETCDIR:/netatalk.conf
82 if [ x"${ATALK_BGROUND}" = x"yes" -a "${ATALKD_RUN}" != "no" ]; then
83 echo "Starting netatalk in the background ... "
84 atalk_startup >& /dev/null &
91 . :ETCDIR:/netatalk.conf
93 if [ "${AFPD_RUN}" = "yes" ]; then
94 ebegin "Stopping afpd"
95 start-stop-daemon --stop --quiet --exec :SBINDIR:/afpd
99 if [ "${TIMELORD_RUN}" = "yes" ]; then
100 ebegin "Stopping timelord"
101 start-stop-daemon --stop --quiet --exec :SBINDIR:/timelord
105 if [ "${ATALKD_RUN}" != "no" ]; then
106 if [ "${PAPD_RUN}" = "yes" ]; then
107 ebegin "Stopping papd"
108 start-stop-daemon --stop --quiet --exec :SBINDIR:/papd
113 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
114 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
116 ebegin "Unregistering $reg"
117 :BINDIR:/nbpunrgstr "$reg"
121 ebegin "Stopping atalkd"
122 start-stop-daemon --stop --quiet --exec :SBINDIR:/atalkd
126 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
127 ebegin "Stopping cnid_metad"
128 start-stop-daemon --stop --quiet --exec :SBINDIR:/cnid_metad