Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- add OpenBSD-specifics to route socket handler - add rc.d daemon file - update README Tested on riscv64 with OpenBSD 7.4
- Loading branch information
Showing
6 changed files
with
81 additions
and
22 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
#!/bin/ksh | ||
|
||
workgroup=$(/usr/local/bin/testparm -s --parameter-name workgroup 2>/dev/null) | ||
samba_config_file="/etc/samba/smb.conf" | ||
|
||
if [ -z ${workgroup} ] && [ -r "${samba_config_file}" ]; then | ||
workgroup=$(grep -i -E '^[[:space:]]*workgroup' "${samba_config_file}" | cut -f2 -d= | tr -d '[:blank:]') | ||
fi | ||
|
||
if [ -n "$workgroup" ]; then | ||
daemon_flags="-w ${workgroup}" | ||
fi | ||
|
||
daemon="python3 /usr/local/bin/wsdd" | ||
|
||
# create user with | ||
# doas useradd -g =uid -c "WSD Daemon" -L daemon -s /sbin/nologin -d /var/empty -r 100..999 _wsdd | ||
daemon_user="_wsdd" | ||
|
||
. /etc/rc.d/rc.subr | ||
|
||
rc_bg="YES" | ||
rc_reload="NO" | ||
|
||
rc_cmd $1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters