FreeBSD Bugzilla – Attachment 216065 Details for
Bug 247626
net/py-wsdd: Update to 0.6.1
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
proposed rc.d script.
wsdd (text/plain), 1.53 KB, created by
Hiroo Ono
on 2020-06-30 09:19:49 UTC
(
hide
)
Description:
proposed rc.d script.
Filename:
MIME Type:
Creator:
Hiroo Ono
Created:
2020-06-30 09:19:49 UTC
Size:
1.53 KB
patch
obsolete
>#!/bin/sh > ># PROVIDE: wsdd ># REQUIRE: DAEMON samba_server ># BEFORE: login ># KEYWORD: shutdown > ># Add the following line in /etc/rc.conf to enable wsdd: ># ># wsdd_enable="YES" ># wsdd_flags="<set as needed>" ># wsdd_domain="<set if your host is an AD member>" ># wsdd_group="<set if you want to set the workgroup manually>" ># ># Do not specify -d DOMAIN or -w WORKGROUP in wsdd_flags. Instead, set ># wsdd_domain="DOMAIN" or wsdd_group="WORKGROUP", otherwise it will be ># overridden by automatically detected workgroup. ># > >. /etc/rc.subr > >name=wsdd >rcvar=wsdd_enable > >load_rc_config ${name} > >: ${wsdd_suppflags=""} >: ${wsdd_domain=""} >: ${wsdd_group=""} >: ${wsdd_smb_config_file="/usr/local/etc/smb4.conf"} > >if [ -z "${wsdd_group}" ]; then > # automatic detection of workgroup > wsdd_group=$(/usr/local/bin/testparm -s --parameter-name workgroup 2>/dev/null) > > # try to manually extract workgroup from samba configuration if testparm failed > if [ -z "$wsdd_group" ] && [ -r $wsdd_smb_config_file ]; then > wsdd_group="$(grep -i '^[[:space:]]*workgroup[[:space:]]*=' $wsdd_smb_config_file | cut -f2 -d= | tr -d '[:blank:]')" > fi >fi > >wsdd_opts="" >if [ -n "${wsdd_suppflags}" ]; then > wsdd_opts="${wsdd_suppflags}" >fi >if [ -n "$wsdd_domain" ]; then > wsdd_opts="${wsdd_opts} -d ${wsdd_domain}" >elif [ -n "$wsdd_group" ]; then > wsdd_opts="${wsdd_opts} -w ${wsdd_group}" >fi > >command="/usr/sbin/daemon" >procname="/usr/local/bin/python3.7" >pidfile="/var/run/${name}.pid" >command_args="-u daemon -S -p $pidfile /usr/local/bin/wsdd $wsdd_opts" > >load_rc_config $name >run_rc_command "$1"
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 247626
:
216035
|
216064
| 216065 |
216297