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 start-stop-daemon --start --quiet --exec :SBINDIR:/cnid_metad $CNID_CONFIG
44 if [ "${AFPD_RUN}" = "yes" ]; then
45 ebegin "Starting afpd"
46 start-stop-daemon --start --quiet --exec :SBINDIR:/afpd -- \
47 ${AFPD_UAMLIST} -g ${AFPD_GUEST} -c ${AFPD_MAX_CLIENTS} \
48 -n "${ATALK_NAME}${ATALK_ZONE}"
52 if [ "${TIMELORD_RUN}" = "yes" ]; then
53 ebegin "Starting timelord"
54 start-stop-daemon --start --quiet --exec :SBINDIR:/timelord
60 . :ETCDIR:/netatalk.conf
62 if [ x"${ATALK_BGROUND}" = x"yes" ]; then
63 echo "Starting netatalk in the background ... "
64 atalk_startup >& /dev/null &
71 . :ETCDIR:/netatalk.conf
73 if [ "${AFPD_RUN}" = "yes" ]; then
74 ebegin "Stopping afpd"
75 start-stop-daemon --stop --quiet --exec :SBINDIR:/afpd
79 if [ "${TIMELORD_RUN}" = "yes" ]; then
80 ebegin "Stopping timelord"
81 start-stop-daemon --stop --quiet --exec :SBINDIR:/timelord
85 if [ "${ATALKD_RUN}" != "no" ]; then
86 if [ "${PAPD_RUN}" = "yes" ]; then
87 ebegin "Stopping papd"
88 start-stop-daemon --stop --quiet --exec :SBINDIR:/papd
93 "${ATALK_NAME}:Workstation${ATALK_ZONE}" \
94 "${ATALK_NAME}:netatalk${ATALK_ZONE}"
96 ebegin "Unregistering $reg"
97 :BINDIR:/nbpunrgstr "$reg"
101 ebegin "Stopping atalkd"
102 start-stop-daemon --stop --quiet --exec :SBINDIR:/atalkd
106 if [ "${CNID_METAD_RUN}" = "yes" ] ; then
107 ebegin "Stopping cnid_metad"
108 start-stop-daemon --stop --quiet --exec :SBINDIR:/cnid_metad