Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 349568 Details for
Bug 444167
net-proxy/tinyproxy has still reference to /var/run
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
changed initscript
tinyproxy (text/plain), 1.21 KB, created by
Ivan Kirillov
on 2013-05-29 16:56:02 UTC
(
hide
)
Description:
changed initscript
Filename:
MIME Type:
Creator:
Ivan Kirillov
Created:
2013-05-29 16:56:02 UTC
Size:
1.21 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2011 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 ># $Header: /var/cvsroot/gentoo-x86/net-proxy/tinyproxy/files/tinyproxy-1.8.2.initd,v 1.1 2011/03/11 16:25:07 jer Exp $ > >CONFFILE="/etc/${SVCNAME}.conf" >RUNDIR="/run/${SVCNAME}" >RUNAS=$(grep -e "^User" /etc/tinyproxy.conf | sed -e 's/User //') > >depend() { > use logger dns > need net >} > >checkconfig() { > if [ ! -f "${CONFFILE}" ]; then > eerror "Configuration file ${CONFFILE} not found!" > return 1 > fi > if [ ! -d ${RUNDIR} ]; then > mkdir "${RUNDIR}" > chown -R ${RUNAS} "${RUNDIR}" > fi > PIDFILE=$(sed -n -e 's/^[[:space:]]*PidFile[[:space:]]\+"\(.*\)"[[:space:]]*$/\1/p' "${CONFFILE}") > return 0 >} > >start() { > checkconfig || return 1 > > ebegin "Starting tinyproxy" > if [ -n "${PIDFILE}" ]; then > start-stop-daemon --start --pidfile "${PIDFILE}" --startas /usr/sbin/tinyproxy -- -c "${CONFFILE}" > else > start-stop-daemon --start --exec /usr/sbin/tinyproxy -- -c "${CONFFILE}" > fi > eend $? >} > >stop() { > checkconfig || return 1 > > ebegin "Stopping tinyproxy" > if [ -n "${PIDFILE}" ]; then > start-stop-daemon --stop --pidfile "${PIDFILE}" > else > start-stop-daemon --stop --exec /usr/sbin/tinyproxy > fi > 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 444167
: 349568