commit 8309b9ebc40eda7c9313bd5836aa15db8d1e10c3 Author: Marcin Krol <h...@tld-linux.org> Date: Mon Jan 8 03:25:21 2024 +0100
- fix winbindd init script winbind.init | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) --- diff --git a/winbind.init b/winbind.init index c33bcca..6917b8f 100755 --- a/winbind.init +++ b/winbind.init @@ -5,6 +5,7 @@ # user and group information from a NT domain controller to linux. # # config: /etc/samba/smb.conf +# processname: winbindd export PATH=/bin:/sbin:/usr/bin:/usr/sbin @@ -14,6 +15,8 @@ export PATH=/bin:/sbin:/usr/bin:/usr/sbin # Source networking configuration. . /etc/sysconfig/network +winbindd_pidfile="/var/run/samba/winbindd.pid" + # Daemon specific configuration. . /etc/sysconfig/winbind @@ -49,7 +52,7 @@ start() { stop() { if [ -f /var/lock/subsys/winbind ]; then msg_stopping winbindd - killproc winbindd + killproc --pidfile $winbindd_pidfile winbindd rm -f /var/lock/subsys/winbind >/dev/null 2>&1 else msg_not_running winbindd @@ -82,7 +85,7 @@ case "$1" in reload|force-reload) if [ -f /var/lock/subsys/winbind ]; then msg_reloading winbindd - killproc winbindd -HUP + killproc --pidfile $winbindd_pidfile winbindd -HUP RETVAL=$? else msg_not_running winbindd ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/samba.git/commitdiff/a4b168e0e56c6b352a659b97c841343546b8382a _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit