Author: Patrycja Rosa Date: Tue Jan 25 23:47:10 2022 +0100 Change default user/group to wsdd diff --git a/etc/openrc/conf.d/wsdd b/etc/openrc/conf.d/wsdd index 7bb9ee0..0781ba2 100644 --- a/etc/openrc/conf.d/wsdd +++ b/etc/openrc/conf.d/wsdd @@ -2,7 +2,7 @@ # Override the default user/group under which wsdd runs. # Must follow the user[:group] notation. -#WSDD_USER="daemon:daemon" +#WSDD_USER="wsdd:wsdd" # Specify alternative log file location. #WSDD_LOG_FILE="/var/log/wsdd.log" diff --git a/etc/openrc/init.d/wsdd b/etc/openrc/init.d/wsdd index da2aa72..1456905 100755 --- a/etc/openrc/init.d/wsdd +++ b/etc/openrc/init.d/wsdd @@ -10,7 +10,7 @@ depend() { SMB_CONFIG_FILE="/etc/samba/smb.conf" LOG_FILE="${WSDD_LOG_FILE:-/var/log/wsdd.log}" WSDD_EXEC="/usr/bin/wsdd" -RUN_AS_USER="${WSDD_USER:-daemon:daemon}" +RUN_AS_USER="${WSDD_USER:-wsdd:wsdd}" start() { ebegin "Starting ${RC_SVCNAME} daemon"