Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 37826 Details for
Bug 59589
[new app] ebuild for opennap-ng-0.47
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
reworked init-skript
opennap.initd (text/plain), 2.27 KB, created by
Lars Wendler (Polynomial-C) (RETIRED)
on 2004-08-20 16:02:10 UTC
(
hide
)
Description:
reworked init-skript
Filename:
MIME Type:
Creator:
Lars Wendler (Polynomial-C) (RETIRED)
Created:
2004-08-20 16:02:10 UTC
Size:
2.27 KB
patch
obsolete
>#!/sbin/runscript > >opts="start stop restart" > >depend() { > need net nscd >} > >start() { > ebegin "Starting opennap" > if [ -z "${NAPCHROOT}" ]; then > if [ ! -f /etc/opennap-ng/config ]; then > eerror "no config file found" && die > elif [ ! -f /var/db/opennap-ng/users ]; then > eerror "no userdb found. exiting" && die > elif [ ! -f /etc/opennap-ng/motd ]; then > ewarn "no motd found. This can prevent some zlib-enabled clients from logging in" > fi > chown -R root:${GROUP} /etc/opennap-ng || return 1 > chmod -R 0640 /etc/opennap-ng/* || return 1 > chown -R ${USER}:${GROUP} /var/db/opennap-ng || return 1 > else > if [ ! -d ${NAPCHROOT}/etc/opennap-ng ]; then > einfo "Directory ${NAPCHROOT}/etc/opennap-ng not existing, trying to create..." > mkdir -p ${NAPCHROOT}/etc/opennap-ng > cp -a /etc/opennap-ng/* ${NAPCHROOT}/etc/opennap-ng > einfo "...ok!" > fi > if [ ! -d ${NAPCHROOT}/var/db/opennap-ng ]; then > einfo "Directory ${NAPCHROOT}/var/db/opennap-ng not existing, trying to create..." > mkdir -p ${NAPCHROOT}/var/db/opennap-ng > cp -a /var/db/opennap-ng/* ${NAPCHROOT}/var/db/opennap-ng > einfo "...ok!" > fi > > chown -R root:${GROUP} ${NAPCHROOT}/etc || return 1 > chmod -R 0640 ${NAPCHROOT}/etc/* || return 1 > chown -R ${USER}:${GROUP} ${NAPCHROOT}/var || return 1 > > if [ ! -f "${NAPCHROOT}/etc/config" ]; then > eerror "no config file found" && die > elif [ ! -f ${NAPCHROOT}/var/db/opennap-ng/users ]; then > eerror "no userdb found. exiting" && die > elif [ ! -f ${NAPCHROOT}/etc/opennap-ng/motd ]; then > ewarn "no motd found. This can prevent some zlib-enabled clients from logging in" > fi > fi > > > start-stop-daemon --quiet --start \ > --pidfile /var/db/opennap-ng/opennap-ng.pid \ > -x /usr/sbin/opennap &>${LOG} & > sleep 2 > [ -f /var/db/opennap-ng/opennap-ng.pid ] \ > && mv /var/db/opennap-ng/opennap-ng.pid /var/run/ \ > || eerror "couldn't find pidfile" > if ! pgrep -u ${USER} opennap >/dev/null > then > eerror "opennap could not be started! Check logfile: ${LOG}" > fi > for i in `pgrep -u ${USER} opennap` > do > renice ${NICE} -p $i > /dev/null > done > eend $? >} > >stop() { > ebegin "Stopping opennap - please wait" > start-stop-daemon --oknodo --stop -s KILL --pidfile \ > /var/run/opennap-ng.pid &>/dev/null > rm /var/run/opennap-ng.pid > eend $? >} > >restart() { > stop > sleep 5 > start >}
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 59589
:
36867
|
36868
|
36880
|
36881
|
36906
|
36907
|
37151
|
37393
|
37394
|
37825
|
37826
|
37827
|
37828