public inbox for development@lists.ipfire.org
 help / color / mirror / Atom feed
From: Michael Tremer <michael.tremer@ipfire.org>
To: development@lists.ipfire.org
Subject: Re: [PATCH] samba: remove pid at killproc in initscript
Date: Mon, 02 Nov 2020 10:29:54 +0000	[thread overview]
Message-ID: <00AFCF2D-58F3-44E5-B515-E81D8600B1FD@ipfire.org> (raw)
In-Reply-To: <20201101170608.5259-1-arne_f@ipfire.org>

[-- Attachment #1: Type: text/plain, Size: 1472 bytes --]

This looks okay to me.

Reviewed-by: Michael Tremer <michael.tremer(a)ipfire.org>

> On 1 Nov 2020, at 17:06, Arne Fitzenreiter <arne_f(a)ipfire.org> wrote:
> 
> sometime a stale nmbd or smbd process prevent start of samba.
> this change should kill all processes.
> 
> Signed-off-by: Arne Fitzenreiter <arne_f(a)ipfire.org>
> ---
> lfs/samba                      | 2 +-
> src/initscripts/packages/samba | 6 +++---
> 2 files changed, 4 insertions(+), 4 deletions(-)
> 
> diff --git a/lfs/samba b/lfs/samba
> index 92a6b1121..29dfec2e9 100644
> --- a/lfs/samba
> +++ b/lfs/samba
> @@ -32,7 +32,7 @@ DL_FROM    = $(URL_IPFIRE)
> DIR_APP    = $(DIR_SRC)/$(THISAPP)
> TARGET     = $(DIR_INFO)/$(THISAPP)
> PROG       = samba
> -PAK_VER    = 73
> +PAK_VER    = 74
> 
> DEPS       = avahi cups libtirpc krb5 perl-Parse-Yapp
> 
> diff --git a/src/initscripts/packages/samba b/src/initscripts/packages/samba
> index 2aab39977..fbab2dabe 100644
> --- a/src/initscripts/packages/samba
> +++ b/src/initscripts/packages/samba
> @@ -31,13 +31,13 @@ case "$1" in
> 
> 	stop)
> 		boot_mesg "Stopping smbd..."
> -		killproc -p /var/run/smbd.pid /usr/sbin/smbd
> +		killproc /usr/sbin/smbd
> 
> 		boot_mesg "Stopping nmbd..."
> -		killproc -p /var/run/nmbd.pid /usr/sbin/nmbd
> +		killproc /usr/sbin/nmbd
> 
> 		boot_mesg "Stopping winbind..."
> -		killproc -p /var/run/winbindd.pid /usr/sbin/winbindd
> +		killproc /usr/sbin/winbindd
>                 ;;
> 
> 	reload)
> -- 
> 2.17.1
> 


      reply	other threads:[~2020-11-02 10:29 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-01 17:06 Arne Fitzenreiter
2020-11-02 10:29 ` Michael Tremer [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=00AFCF2D-58F3-44E5-B515-E81D8600B1FD@ipfire.org \
    --to=michael.tremer@ipfire.org \
    --cc=development@lists.ipfire.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox