Skip to content

[2.2] Improve systemd services dependencies#233

Merged
slowfranklin merged 1 commit intobranch-netatalk-2-2from
rdmark-issue-232
Apr 4, 2023
Merged

[2.2] Improve systemd services dependencies#233
slowfranklin merged 1 commit intobranch-netatalk-2-2from
rdmark-issue-232

Conversation

@rdmark
Copy link
Copy Markdown
Member

@rdmark rdmark commented Mar 1, 2023

atalkd will fail to start unless a network connection is established. All other DDP services depend on atalkd to have started first, so make them do the same.

This is critical for when netatalk is running on a device that only has a wlan interface, such as an RPi Zero W.

Addresses #232

Also pulls in the improvement from downstream https://sources.debian.org/src/netatalk/3.1.14~ds-1/debian/patches/104_modernize_systemd.patch/

@rdmark rdmark changed the title Make all systemd services depend on network-online. [2.2 Make all systemd services depend on network-online. Mar 1, 2023
@rdmark rdmark changed the title [2.2 Make all systemd services depend on network-online. [2.2] Make all systemd services depend on network-online. Mar 1, 2023
@marcuskuenzel1971
Copy link
Copy Markdown

where can i find distrib/initscripts/afpd.service.tmpl and edit it ?

@rdmark rdmark requested a review from slowfranklin March 1, 2023 20:49
@rdmark
Copy link
Copy Markdown
Member Author

rdmark commented Mar 1, 2023

where can i find distrib/initscripts/afpd.service.tmpl and edit it ?

@marcuskuenzel1971 I suggest you edit the *.service files that are installed on your system already. If you run the command systemctl status atalkd you can find where atalkd.service is located, for instance. In my case, they're under /lib/systemd/system/

$ systemctl status atalkd
● atalkd.service - Netatalk AppleTalk daemon
     Loaded: loaded (/lib/systemd/system/atalkd.service; enabled; vendor preset: enabled)
     Active: active (running) since Sun 2023-02-26 19:26:42 PST; 2 days ago
    Process: 5620 ExecStart=/usr/local/sbin/atalkd (code=exited, status=0/SUCCESS)
      Tasks: 1 (limit: 1596)
        CPU: 2.868s
     CGroup: /system.slice/atalkd.service
             └─5621 /usr/local/sbin/atalkd

Edit the file (requires sudo) then save and run the command sudo systemctl daemon-reload

- Depend on network-online in order for atalkd to start up more consistently
- Remove the dependence on syslog since it is socket activated
@rdmark rdmark force-pushed the rdmark-issue-232 branch from 23df0fa to dbae6b4 Compare March 26, 2023 22:55
@rdmark rdmark changed the title [2.2] Make all systemd services depend on network-online. [2.2] systemd services depend on network-online; remove unneeded syslog dep Mar 26, 2023
@rdmark rdmark changed the title [2.2] systemd services depend on network-online; remove unneeded syslog dep [2.2] Improve systemd services dependencies Mar 26, 2023
@slowfranklin slowfranklin merged commit 6f99074 into branch-netatalk-2-2 Apr 4, 2023
@rdmark rdmark deleted the rdmark-issue-232 branch April 23, 2023 22:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants