Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 95467 Details for
Bug 145464
[new package] net-analyzer/hobbit-client-4.2.0.ebuild
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
plaintext init-script
hobbit-client.init (text/plain), 1.62 KB, created by
Deleted Account
on 2006-08-30 05:40:20 UTC
(
hide
)
Description:
plaintext init-script
Filename:
MIME Type:
Creator:
Deleted Account
Created:
2006-08-30 05:40:20 UTC
Size:
1.62 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >depend() { > need net > use dns logger > after sshd > } > >checkconfig() { > test -n "${HOBBITCLIENT}" || HOBBITCLIENT="hobbit-c" > test -n "${HOBBITCLIENTHOME}" || HOBBITCLIENTHOME="/usr/lib/hobbit/client" > test -n "${MACHINEDOTS}" || MACHINEDOTS="$(hostname -f)" > test -n "${BBOSTYPE}" || BBOSTYPE="$(uname -s | tr '[A-Z]' '[a-z]')" > test -n "${BBOSSCRIPT}" || BBOSSCRIPT="hobbitclient-$BBOSTYPE.sh" > test -n "${MACHINE}" || MACHINE="${MACHINEDOTS//\./,}" > > if ! su -s /bin/bash -c "test -w ${HOBBITCLIENTHOME}/logs/" ${HOBBITCLIENT} > then > eerror " ${HOBBITCLIENT} cannot write to the ${HOBBITCLIENTHOME}/logs directory" > return 1 > fi > > if ! su -s /bin/bash -c "test -w ${HOBBITCLIENTHOME}/tmp/" ${HOBBITCLIENT} > then > eerror "${HOBBITCLIENT} can not write to the ${HOBBITCLIENTHOME}/tmp directory" > return 1 > fi > > export MACHINEDOTS BBOSTYPE BBOSSCRIPT MACHINE HOBBITCLIENTHOME > return 0 > } > >start() { > checkconfig || return 1 > ebegin "Starting hobbit-client for ${MACHINEDOTS}" > start-stop-daemon --start --chuid hobbit-c:adm \ > --exec ${HOBBITCLIENTHOME}/bin/hobbitlaunch -- \ > --config=${HOBBITCLIENTHOME}/etc/clientlaunch.cfg \ > --pidfile=${HOBBITCLIENTHOME}/logs/hobbitclient.pid \ > --log=${HOBBITCLIENTHOME}/logs/clientlaunch.log > eend $? "Failed to start hobbit-client" > } > >stop() { > checkconfig || return 1 > ebegin "Stopping hobbit-client" ># start-stop-daemon --stop --user ${HOBBITCLIENT} > pkill -U ${HOBBITCLIENT} > eend $? "Failed to stop hobbit-client" > } >
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 145464
:
95363
|
95466
| 95467 |
95468
|
95469