Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 488830 Details for
Bug 405521
app-misc/dnetc uses deprecated variables in init.d script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
dnetc.init
dnetc (text/plain), 1.58 KB, created by
Michael Orlitzky
on 2017-08-13 19:15:28 UTC
(
hide
)
Description:
dnetc.init
Filename:
MIME Type:
Creator:
Michael Orlitzky
Created:
2017-08-13 19:15:28 UTC
Size:
1.58 KB
patch
obsolete
>#!/sbin/openrc-run ># Copyright 1999-2017 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > > >command="/opt/distributed.net/dnetc" > ># The dnetc daemon doesn't normally write a PID file, but we need one ># to reload it. So, we force the daemon to stay in the foreground with ># the -noquiet flag, and then tell start-stop-daemon to shove it into ># the background and create a PID file for it with command_background. >command_args="-noquiet > -e ${EMAIL} > -inbase ${BUFFER_BASE_DIR}/buff-in > -outbase ${BUFFER_BASE_DIR}/buff-out > ${KEYSERVER_ADDRESS:+-a ${KEYSERVER_ADDRESS}}" > >command_background="true" >command_user="dnetc" >pidfile="/run/dnetc.pid" >extra_started_commands="reload fetch flush" > >description="distributed.net client" >description_flush="flush all output buffers" >description_fetch="fill all input buffers" >description_reload="restart all active clients" > >depend() { > use net >} > >set_cpu_share() { > # fair group cpu scheduler > uidpath="/sys/kernel/uids/$(id -u dnetc)" > [ -d "${uidpath}" ] && echo 2 > "${uidpath}/cpu_share" > unset uidpath >} > >start_pre() { > if [ -z "${EMAIL}" ] ; then > eerror "you must configure your email address in /etc/conf.d/dnetc" > return 1 > fi > set_cpu_share >} > >reload() { > ebegin "Reloading distributed.net client" > start-stop-daemon --signal HUP --pidfile="${pidfile}" > eend ${?} >} > >fetch() { > ebegin "Fetching distributed.net client buffers" > ${command} ${command_args} -fetch > eend ${?} >} > >flush() { > ebegin "Flushing distributed.net client buffers" > ${command} ${command_args} -flush > 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 405521
:
375936
|
375948
|
488706
| 488830