Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 98875 Details for
Bug 145373
net-im/ejabberd-1.1.1 starts but init.d script returns failure
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
baselayout-compatible init.d
ejabberd-1.1.1.initd (text/plain), 1.29 KB, created by
Dustin J. Mitchell
on 2006-10-05 13:06:43 UTC
(
hide
)
Description:
baselayout-compatible init.d
Filename:
MIME Type:
Creator:
Dustin J. Mitchell
Created:
2006-10-05 13:06:43 UTC
Size:
1.29 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: $ > >opts="${opts} reload" > >depend() { > use dns > need net > provide jabber-server >} > >checkconfig() { > if [ ! -e /etc/jabber/ejabberd.cfg ] ; then > eerror "You need an /etc/jabber/ejabberd.cfg file to run ejabberd" > return 1 > fi >} > >start() { > checkconfig || return 1 > ebegin "Starting eJabberd" > start-stop-daemon --start --quiet --chuid jabber:jabber \ > --env HOME=/var/run/jabber \ > --exec /usr/lib64/erlang/erts-5.5/bin/beam \ > --startas /usr/bin/ejabberd -- -noshell -detached > eend $? >} > >stop() { > ebegin "Stopping eJabberd" > if [ -z "$EJABBERD_NODE" ]; > then > EJABBERD_NODE="ejabberd@`hostname -s`" > fi > /usr/bin/ejabberdctl $EJABBERD_NODE stop > eend $? >} > ># Work around a bug in /sbin/runscript.sh - it won't run our custom ># restart() unless it finds these two strings in the file. ># svc_start svc_stop >restart() { > ebegin "Restarting eJabberd" > if [ -z "$EJABBERD_NODE" ]; > then > EJABBERD_NODE="ejabberd@`hostname -s`" > fi > /usr/bin/ejabberdctl $EJABBERD_NODE restart > eend $? >} > >reload() { > ebegin "Reloading eJabberd" > if [ -z "$EJABBERD_NODE" ]; > then > EJABBERD_NODE="ejabberd@`hostname -s`" > fi > /usr/bin/ejabberdctl $EJABBERD_NODE reopen-log > eend $? >}
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 145373
:
95382
|
95383
| 98875