Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 127265 Details for
Bug 104554
EBuild for 389 Directory Ldap Server (fka Fedora Directory Ldap Server)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
net-nds/fedora-ds/files/fedora-ds.initd
fedora-ds.initd (text/plain), 2.33 KB, created by
Dmitry S. Kulyabov
on 2007-08-08 11:02:43 UTC
(
hide
)
Description:
net-nds/fedora-ds/files/fedora-ds.initd
Filename:
MIME Type:
Creator:
Dmitry S. Kulyabov
Created:
2007-08-08 11:02:43 UTC
Size:
2.33 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2007 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >exec="/usr/sbin/ns-slapd" ># PID directory >piddir="/var/run/fedora-ds" ># Instance basedir >instbase="/etc/fedora-ds" ># Empty Instances List >FDSINSTANCES="" > >depend() { > need net > use dns >} > > >checkconfig() { > if [ -z "$INSTANCES" ] ; then > eerror "Fedora Directory Server has not been configured." > eend 1 > return 1 > elif [ -n "$INSTANCES" ] ; then > for INST in $INSTANCES ; do > if [ ! -d "$instbase/slapd-$INST" ] ; then > eerror "Instance $INST has not been configured." > eend 1 > return 1 > fi > done > fi >} > >start() { > checkconfig || return 1 > for inst in $INSTANCES ; do > if [ -d "$instbase/slapd-$INST" ] ; then > FDSINSTANCES="$FDSINSTANCES $inst" > fi > done > einfo "Starting Fedora DS" > eend 0 > for instance in $FDSINSTANCES ; do > ebegin "Starting Instance $instance" > start-stop-daemon --start --quiet \ > --pidfile $piddir/slapd-$instance.pid \ > --exec $exec -- -D $instbase/slapd-$instance \ > -i $piddir/slapd-$instance.pid -w $piddir/slapd-$instance.startpid > eend $? > done >} > > > >stop() { > checkconfig || return 1 > for inst in $INSTANCES ; do > if [ -d "$instbase/slapd-$INST" ] ; then > FDSINSTANCES="$FDSINSTANCES $inst" > fi > done > einfo "Stopping Fedora DS" > eend 0 > for instance in $FDSINSTANCES ; do > ebegin "Stopping Instance $instance" > start-stop-daemon --stop --quiet \ > --pidfile $piddir/slapd-$instance.pid \ > --exec $exec > eend $? > done >} > >restart() { > svc_stop > svc_start >} > > >status() { > for instance in $INSTANCES; do > if [ -e $piddir/slapd-$instance.pid ]; then > pid=$(cat $piddir/slapd-$instance.pid) > if [ $(echo "$pids" | grep -c $pid) -ge 1 ]; then > einfo "$prog $instance (pid $pid) is running..." > else > ewarn "$prog $instance dead but pid file exists" > fi > else > eerror "$prog $instance is stopped" > fi > done >} > >#if [ -n "$2" ]; then ># for I in $INSTANCES; do ># if [ "$2" = "$I" ]; then ># INSTANCES="$2" ># fi ># done ># if [ "$2" != "$INSTANCES" ]; then ># echo -n "$2 is an invalid fedora-ds instance" ># failure; echo ># exit 1 ># fi >#fi > >
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 104554
:
74427
|
110645
|
110657
|
110675
|
110714
|
110956
|
110957
|
110959
|
127259
|
127260
|
127262
|
127263
| 127265 |
127266
|
127269
|
163221
|
163230
|
209028
|
209030
|
209032
|
209033
|
209035
|
209037
|
209039
|
209041
|
209043
|
212617
|
213604
|
213605
|
217432
|
217433
|
224381
|
224383
|
224389