================
* UPD: based on Unicode 6.1.0
+* UPD: experimental systemd service files: always run both afpd and cnid_metad
Changes in 2.2.2
================
# Makefile for distrib/systemd/
-EXTRA_DIST = README netatalk-afpd.service netatalk-cnid_metad.service
+EXTRA_DIST = README netatalk.service netatalk-cnid.service
The service file of the current Netatalk is not appropriate because it use
a shell-script "netatalk.sh".
-Two experimental files are for future netatalk.
+
+Two experimental files are for future netatalk 3.0.
+
+ netatalk.service
+ netatalk-cnid.service
+
+You can control starting/stopping by netatalk.service only
+because netatalk-cnid.service is controlled automatically.
+
+ # systemctl enable|disable netatalk.service
+ # systemctl start|stop|restart netatalk.service
These files start daemons directly and do not read "netatalk.conf".
Therefore, you need to edit files for setting options.
-ATALK_NAME: set in afpd.conf instead
-AFPD_MAX_CLIENTS: set in netatalk-afpd.service by using -c
-AFPD_UAMLIST: set in afpd.conf instead
-AFPD_GUEST: set in afpd.conf instead
-CNID_CONFIG: set in netatalk-cnid_metad.service by using -l and -f options
+ ATALK_NAME: set in afpd.conf instead
+ AFPD_MAX_CLIENTS: set in netatalk.service by using -c
+ AFPD_UAMLIST: set in afpd.conf instead
+ AFPD_GUEST: set in afpd.conf instead
+ CNID_CONFIG: set in netatalk-cnid.service by using -l and -f options
There are no service files for atalkd, papd, timelord and a2boot
-because AppleTalk feature is due to be abolished in the future.
+because AppleTalk feature is due to be abolished in netatalk 3.0.
+++ /dev/null
-# This is experimental service file.
-# See distrib/systemd/README
-
-[Unit]
-Description=Netatalk AFP fileserver for Macintosh clients
-After=syslog.target network.target slpd.service avahi-daemon.service netatalk-cnid_metad.service
-
-[Service]
-Type=forking
-GuessMainPID=no
-ExecStart=/usr/sbin/afpd -c 20
-Restart=always
-RestartSec=1
-
-[Install]
-WantedBy=multi-user.target
--- /dev/null
+# This is experimental service file.
+# See distrib/systemd/README
+
+[Unit]
+Description=Netatalk CNID database daemon for AFP fileserver
+After=syslog.target network.target
+Before=netatalk.service
+Requires=netatalk.service
+
+[Service]
+Type=forking
+GuessMainPID=no
+ExecStart=/usr/sbin/cnid_metad -l log_note
+Restart=always
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target
+Also=netatalk.service
+++ /dev/null
-# This is experimental service file.
-# See distrib/systemd/README
-
-[Unit]
-Description=Netatalk CNID database daemon for afpd
-After=syslog.target network.target
-
-[Service]
-Type=forking
-GuessMainPID=no
-ExecStart=/usr/sbin/cnid_metad -l log_note
-Restart=always
-RestartSec=1
-
-[Install]
-WantedBy=multi-user.target
--- /dev/null
+# This is experimental service file.
+# See distrib/systemd/README
+
+[Unit]
+Description=Netatalk AFP fileserver for Macintosh clients
+After=syslog.target network.target slpd.service avahi-daemon.service netatalk-cnid.service
+Requires=netatalk-cnid.service
+
+[Service]
+Type=forking
+GuessMainPID=no
+ExecStart=/usr/sbin/afpd -c 20
+Restart=always
+RestartSec=1
+
+[Install]
+WantedBy=multi-user.target
+Also=netatalk-cnid.service