Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 330052 Details for
Bug 444016
net-fs/samba-4.0.0_rc4 wrong init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
/etc/init.d/samba
samba_init (text/plain), 1.53 KB, created by
Aleksandr Yakimov
on 2012-11-20 11:29:48 UTC
(
hide
)
Description:
/etc/init.d/samba
Filename:
MIME Type:
Creator:
Aleksandr Yakimov
Created:
2012-11-20 11:29:48 UTC
Size:
1.53 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License, v2 or later ># $Header: /var/cvsroot/gentoo-x86/net-fs/samba/files/3.6/samba.initd,v 1.3 2011/09/14 22:52:33 polynomial-c Exp $ > >extra_started_commands="reload" > >depend() { > after slapd > need net > use cupsd >} > >DAEMONNAME="${SVCNAME##samba.}" >[ "${DAEMONNAME}" != "samba" ] && daemon_list=${DAEMONNAME} > >signal_do() { > local signal="$1" > [ -z "${signal}" ] && return 0 > > local result=0 last_result=0 daemon= cmd_exec= > for daemon in ${daemon_list} ; do > eval cmd_exec=\$${daemon}_${signal} > if [ -n "${cmd_exec}" ]; then > ebegin "${my_service_name} -> ${signal}: ${daemon}" > #echo ${cmd} '->' ${!cmd} > ${cmd_exec} > /dev/null > last_result=$? > eend ${last_result} > fi > result=$(( ${result} + ${last_result} )) > done > return ${result} >} > >mkdir_sambadirs() { > [ -d /var/run/samba ] || mkdir -p /var/run/samba >} > >start() { > ${my_service_PRE} > mkdir_sambadirs > signal_do start && return 0 > > eerror "Error: starting services (see system logs)" > signal_do stop > return 1 >} >stop() { > ${my_service_PRE} > if signal_do stop ; then > ${my_service_POST} > return 0 > fi >} >reload() { > ${my_service_PRE} > signal_do reload >}
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 444016
: 330052 |
330054
|
330922