From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 From: "Jan Alexander Steffens (heftig)" Date: Tue, 14 May 2024 18:00:07 +0200 Subject: [PATCH] Modify systemd service for Arch Start after Samba and keep backward compatibility with the AUR package. --- etc/systemd/{wsdd.defaults => wsdd.conf} | 2 +- etc/systemd/wsdd.service | 6 ++---- 2 files changed, 3 insertions(+), 5 deletions(-) rename etc/systemd/{wsdd.defaults => wsdd.conf} (84%) diff --git a/etc/systemd/wsdd.defaults b/etc/systemd/wsdd.conf similarity index 84% rename from etc/systemd/wsdd.defaults rename to etc/systemd/wsdd.conf index 3c8373e9a6d6..431e571c2ce3 100644 --- a/etc/systemd/wsdd.defaults +++ b/etc/systemd/wsdd.conf @@ -2,4 +2,4 @@ # Use, e.g., "-i eth0" to restrict operations to a specific interface # Refer to the wsdd(8) man page for details -WSDD_PARAMS="" +PARAMS="--workgroup WORKGROUP" diff --git a/etc/systemd/wsdd.service b/etc/systemd/wsdd.service index eea467082830..d2157e4a41d1 100644 --- a/etc/systemd/wsdd.service +++ b/etc/systemd/wsdd.service @@ -5,14 +5,12 @@ Documentation=man:wsdd(8) After=network-online.target Wants=network-online.target ; It makes sense to have Samba running when wsdd starts, but is not required. -; Thus, the next to lines are disabled and use BindsTo only. -; One may also add any of these services to After for stronger binding. ;BindsTo=smb.service -;BindsTo=samba.service +After=smb.service [Service] Type=simple -EnvironmentFile=/etc/default/wsdd +EnvironmentFile=/etc/conf.d/wsdd ; The service is put into an empty runtime directory chroot, ; i.e. the runtime directory which usually resides under /run ExecStart=/usr/bin/wsdd --shortlog --chroot=/run/wsdd $WSDD_PARAMS