Date: Fri, 18 Jan 2013 04:23:44 -0800 (PST) From: William Grzybowski <william88@gmail.com> To: FreeBSD-gnats-submit@freebsd.org Subject: ports/175403: [PATCH] net/samba36: check for $rc_force Message-ID: <50f93ed0.031d650a.4155.3942@mx.google.com> Resent-Message-ID: <201301181230.r0ICU2Tp026660@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>Number: 175403 >Category: ports >Synopsis: [PATCH] net/samba36: check for $rc_force >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-ports-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Jan 18 12:30:01 UTC 2013 >Closed-Date: >Last-Modified: >Originator: William Grzybowski >Release: FreeBSD 9.1-RELEASE amd64 >Organization: >Environment: >Description: Currently samba rc.d does not respect $rc_force, which means # service samba force{start,stop} won't work. >How-To-Repeat: >Fix: See attached patch --- samba36.patch begins here --- Index: files/samba.in =================================================================== --- files/samba.in (revision 310596) +++ files/samba.in (working copy) @@ -132,7 +132,7 @@ command="%%PREFIX%%/sbin/${name}" pidfile="%%SAMBA_RUNDIR%%/${name}${pid_extra}.pid" # Daemon should be enabled and running - if [ -n "${rcvar}" ] && checkyesno "${rcvar}"; then + if [ -n "${rcvar}" ] && ( checkyesno "${rcvar}" || [ -n "${rc_force}" ] ); then run_rc_command "${_rc_prefix}${rc_arg}" ${rc_extra_args} # If any of the commands failed, take it as a global result result=$((${result} || $?)) --- samba36.patch ends here --- >Release-Note: >Audit-Trail: >Unformatted:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50f93ed0.031d650a.4155.3942>