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 $CNID_CONFIG
45 if [ "${AFPD_RUN}" = "yes" ]; then
46 ebegin "Starting afpd"
47 start-stop-daemon --start --quiet --exec :SBINDIR:/afpd -- \
48 ${AFPD_UAMLIST} -g ${AFPD_GUEST} -c ${AFPD_MAX_CLIENTS} \
49 -n "${ATALK_NAME}${ATALK_ZONE}"
53 if [ "${TIMELORD_RUN}" = "yes" ]; then
54 ebegin "Starting timelord"
55 start-stop-daemon --start --quiet --exec :SBINDIR:/timelord
61 . :ETCDIR:/netatalk.conf
63 if [ x"${ATALK_BGROUND}" = x"yes" ]; then
64 echo "Starting netatalk in the background ... "
65 atalk_startup >& /dev/null &
72 . :ETCDIR:/netatalk.conf
74 if [ "${AFPD_RUN}" = "yes" ]; then
75 ebegin "Stopping afpd"
76 start-stop-daemon --stop --quiet --exec :SBINDIR:/afpd
80 if [ "${TIMELORD_RUN}" = "yes" ]; then
81 ebegin "Stopping timelord"
82 start-stop-daemon --stop --quiet --exec :SBINDIR:/timelord
86 if [ "${ATALKD_RUN}" != "no" ]; then
87 if [ "${PAPD_RUN}" = "yes" ]; then
88 ebegin "Stopping papd"
89 start-stop-daemon --stop --quiet --exec :SBINDIR:/papd
94 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
95 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
97 ebegin "Unregistering $reg"
98 :BINDIR:/nbpunrgstr "$reg"
102 ebegin "Stopping atalkd"
103 start-stop-daemon --stop --quiet --exec :SBINDIR:/atalkd
107 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
108 ebegin "Stopping cnid_metad"
109 start-stop-daemon --stop --quiet --exec :SBINDIR:/cnid_metad