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
14 # . :ETCDIR:/netatalk.conf
16 if [ "${ATALKD_RUN}" != "no" ]; then
17 ebegin "Starting atalkd"
18 start-stop-daemon --start --quiet --exec :SBINDIR:/atalkd
22 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
23 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
25 ebegin " Registering $reg"
26 :BINDIR:/nbprgstr "$reg"
30 if [ "${PAPD_RUN}" = "yes" ]; then
31 ebegin " Starting papd"
32 start-stop-daemon --start --quiet --exec :SBINDIR:/papd
38 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
39 ebegin "Starting cnid_metad"
40 start-stop-daemon --start --quiet --exec :SBINDIR:/cnid_metad -- \
46 if [ "${AFPD_RUN}" = "yes" ]; then
47 ebegin "Starting afpd"
48 start-stop-daemon --start --quiet --exec :SBINDIR:/afpd -- \
49 ${AFPD_UAMLIST} -g ${AFPD_GUEST} -c ${AFPD_MAX_CLIENTS} \
50 -n "${ATALK_NAME}${ATALK_ZONE}"
54 if [ "${TIMELORD_RUN}" = "yes" ]; then
55 ebegin "Starting timelord"
56 start-stop-daemon --start --quiet --exec :SBINDIR:/timelord
62 . :ETCDIR:/netatalk.conf
64 if [ x"${ATALK_BGROUND}" = x"yes" ]; then
65 echo "Starting netatalk in the background ... "
66 atalk_startup >& /dev/null &
73 . :ETCDIR:/netatalk.conf
75 if [ "${AFPD_RUN}" = "yes" ]; then
76 ebegin "Stopping afpd"
77 start-stop-daemon --stop --quiet --exec :SBINDIR:/afpd
81 if [ "${TIMELORD_RUN}" = "yes" ]; then
82 ebegin "Stopping timelord"
83 start-stop-daemon --stop --quiet --exec :SBINDIR:/timelord
87 if [ "${ATALKD_RUN}" != "no" ]; then
88 if [ "${PAPD_RUN}" = "yes" ]; then
89 ebegin "Stopping papd"
90 start-stop-daemon --stop --quiet --exec :SBINDIR:/papd
95 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
96 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
98 ebegin "Unregistering $reg"
99 :BINDIR:/nbpunrgstr "$reg"
103 ebegin "Stopping atalkd"
104 start-stop-daemon --stop --quiet --exec :SBINDIR:/atalkd
108 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
109 ebegin "Stopping cnid_metad"
110 start-stop-daemon --stop --quiet --exec :SBINDIR:/cnid_metad