]> arthur.barton.de Git - netatalk.git/blob - distrib/initscripts/rc.atalk.redhat-systemd.tmpl
useless configure summary
[netatalk.git] / distrib / initscripts / rc.atalk.redhat-systemd.tmpl
1 #!/bin/sh
2
3 # Netatalk daemons.
4
5 ATALK_BIN=:BINDIR:
6 ATALK_CONF_DIR=:ETCDIR:
7 ATALK_SBIN=:SBINDIR:
8
9 # default
10 ATALK_NAME=`echo ${HOSTNAME}|cut -d. -f1`
11 ATALK_UNIX_CHARSET='LOCALE'
12 ATALK_MAC_CHARSET='MAC_ROMAN'
13
14 CNID_METAD_RUN=yes
15 AFPD_RUN=yes
16 AFPD_MAX_CLIENTS=20
17 AFPD_UAMLIST="-U uams_dhx.so,uams_dhx2.so"
18 AFPD_GUEST=nobody
19 CNID_CONFIG="-l log_note"
20
21 ATALKD_RUN=no
22 PAPD_RUN=no
23 TIMELORD_RUN=no
24 A2BOOT_RUN=no
25 ATALK_ZONE=
26 ATALK_BGROUND=no
27
28 # read in netatalk configuration
29 if [ -f ${ATALK_CONF_DIR}/netatalk.conf ]; then
30     . ${ATALK_CONF_DIR}/netatalk.conf
31 fi
32
33 if [ x"${ATALKD_RUN}" != x"no" -a -x ${ATALK_SBIN}/atalkd ]; then
34         ${ATALK_SBIN}/atalkd
35
36         if [ -x ${ATALK_BIN}/nbprgstr ]; then
37             ${ATALK_BIN}/nbprgstr -p 4 ${ATALK_NAME}:Workstation${ATALK_ZONE}
38             ${ATALK_BIN}/nbprgstr -p 4 ${ATALK_NAME}:netatalk${ATALK_ZONE}
39         fi      
40
41         if [ x"${PAPD_RUN}" = x"yes"  -a -x ${ATALK_SBIN}/papd ]; then
42             ${ATALK_SBIN}/papd
43         fi
44
45         # check for timelord in bin directory
46         if [ x"${TIMELORD_RUN}" = x"yes"  -a -x ${ATALK_BIN}/timelord ]; then
47             ${ATALK_BIN}/timelord
48         fi
49
50         # check for timelord in sbin directory
51         if [ x"${TIMELORD_RUN}" = x"yes"  -a -x ${ATALK_SBIN}/timelord ]; then
52             ${ATALK_SBIN}/timelord
53         fi
54
55         # check for a2boot in bin directory
56         if [ x"${A2BOOT_RUN}" = x"yes"  -a -x ${ATALK_BIN}/a2boot ]; then
57             ${ATALK_BIN}/a2boot
58         fi
59
60         # check for a2boot in sbin directory
61         if [ x"${A2BOOT_RUN}" = x"yes"  -a -x ${ATALK_SBIN}/a2boot ]; then
62             ${ATALK_SBIN}/a2boot
63         fi
64 fi
65
66 if [ x"${CNID_METAD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/cnid_metad ]; then
67         ${ATALK_SBIN}/cnid_metad $CNID_CONFIG
68 fi
69
70 if [ x"${AFPD_RUN}" = x"yes" -a -x ${ATALK_SBIN}/afpd ]; then
71         ${ATALK_SBIN}/afpd ${AFPD_UAMLIST} -g ${AFPD_GUEST} \
72                -c ${AFPD_MAX_CLIENTS} -n ${ATALK_NAME}${ATALK_ZONE}
73 fi