Date: Mon, 29 Jun 2020 18:49:01 +0000 From: bugzilla-noreply@freebsd.org To: ports-bugs@FreeBSD.org Subject: [Bug 247626] net/py-wsdd: Update to 0.6.1 Message-ID: <bug-247626-7788-RYkplR9mbB@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-247626-7788@https.bugs.freebsd.org/bugzilla/> References: <bug-247626-7788@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D247626 --- Comment #2 from Jeremy Chadwick <jdc@koitsu.org> --- (In reply to Hiroo Ono from comment #1) In general, this rc script provided by the vendor is pretty bad. Your modification fixes a long-standing problem of the daemon not TRULY being stopped properly, which is great! The vendor version has an unnecesary dependency on Samba (testparm) just for something like "set the workgroup name", and does not let you set your own flags in rc.conf for wsdd (often needed for things like "-i em0"). That's a feature I really, really needed. What I use is below, named "wsdd_alternate" as to not conflict with the port/pkg one. It allows me to do this in rc.conf: wsdd_alternate_enable=3D"yes" wsdd_alternate_args=3D"-w WORKGROUP -4 -i em0 -v -v -v" Keep in mind I COULD NOT call the variable wsdd_alternate_flags because that ends up adding the flags to daemon(8) as well (bad). I don't know how to override that behaviour without writing a bunch of wsdd_alternate_prestart() etc. nonsense. #!/bin/sh # PROVIDE: wsdd_alternate # REQUIRE: DAEMON NETWORKING SERVERS # BEFORE: LOGIN # KEYWORD: shutdown . /etc/rc.subr name=3Dwsdd_alternate rcvar=3Dwsdd_alternate_enable load_rc_config $name : ${wsdd_alternate_enable:=3D"NO"} : ${wsdd_alternate_args:=3D""} pidfile=3D"/var/run/${name}.pid" procname=3D"python3" command=3D"/usr/sbin/daemon" command_args=3D"-f -S -p ${pidfile} -u daemon -T wsdd /conf/ME/scripts/wsdd= .py ${wsdd_alternate_args}" run_rc_command "$1" --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-247626-7788-RYkplR9mbB>