Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 17683 Details for
Bug 28681
samba init script problem
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
full script with modified stop function
samba (text/plain), 1.44 KB, created by
sthom
on 2003-09-14 03:33:03 UTC
(
hide
)
Description:
full script with modified stop function
Filename:
MIME Type:
Creator:
sthom
Created:
2003-09-14 03:33:03 UTC
Size:
1.44 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2003 Gentoo Technologies, Inc. ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: /home/cvsroot/gentoo-x86/net-fs/samba/files/samba-init,v 1.3 2003/02/14 23:00:14 vapier Exp $ > >opts="${opts} reload" > >depend() { > need net > use cupsd >} > >start() { > ebegin "Starting samba" > start-stop-daemon --start --quiet --exec /usr/sbin/smbd > result=$? > start-stop-daemon --start --quiet --exec /usr/sbin/nmbd > result=$(( $result + $? )) > eend $result >} > >stop() { > ebegin "Stopping samba" > ebegin " smbd" > filepsid=$(cat /var/run/samba/smbd.pid) > # echo "smbd should run on ps: $filepsid" > psid=$(ps -p $filepsid | tail -1 | cut -d ' ' -f 2) > # echo $psid > if [ "$filepsid" = "$psid" ] ; then > start-stop-daemon --stop --quiet --pidfile /var/run/samba/smbd.pid > result=$? > else > echo " ...was not running." > echo "" > /var/run/samba/smbd.pid > fi > > ebegin " nmbd" > filepsid=$(cat /var/run/samba/nmbd.pid) > # echo "nmbd should run on ps: $filepsid" > psid=$(ps -p $filepsid | tail -1 | cut -d ' ' -f 2) > # echo $psid > if [ "$filepsid" = "$psid" ] ; then > start-stop-daemon --stop --quiet --pidfile /var/run/samba/nmbd.pid > result=$(( $result + $? )) > else > echo " ...was not running." > echo "" > /var/run/samba/nmbd.pid > fi > eend $result >} > >reload() { > ebegin "Reloading samba" > killall -HUP smbd &>/dev/null > result=$? > killall -HUP nmbd &>/dev/null > result=$(( $result + $? )) > eend $result >}
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 28681
: 17683