Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 517560

Summary: net-proxy/ziproxy-3.3.0 - WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead
Product: Gentoo Linux Reporter: slick <mail>
Component: Current packagesAssignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it <maintainer-needed>
Status: RESOLVED FIXED    
Severity: normal CC: mail
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Bug Depends on:    
Bug Blocks: 332633    

Description slick 2014-07-20 11:59:11 UTC
The current initscript does not work correct:

1) use deprecated params in initscript, Example:

-----
# /etc/init.d/ziproxy start
 * Starting ziproxy ...
 * WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead
-----

2) initscript is malformed and does not create the pidfile. I dont know the reason.

I rewrite the initscript so it works perfectly for my. Please check and maybe insert into three:

-----

depend() {
	need net
}

start() {
	local OPT="-d"
	ebegin "Starting ${SVCNAME}"

	[ -n "${CONFIG}"   ] && OPT="${OPT} -c ${CONFIG}"
	[ -n "${ONLYFROM}" ] && OPT="${OPT} -f ${ONLYFROM}"

	start-stop-daemon --start \
		--exec /usr/sbin/ziproxy -- ${OPT} -u ziproxy -g ziproxy -p /var/run/${SVCNAME}.pid
	eend $?
}

stop() {
	ebegin "Stopping ${SVCNAME}"
	start-stop-daemon --stop --quiet --pidfile /var/run/${SVCNAME}.pid
	eend $?
}

-----
Comment 1 Pacho Ramos gentoo-dev 2015-06-20 10:18:23 UTC
+*ziproxy-3.3.1 (20 Jun 2015)
+
+  20 Jun 2015; Pacho Ramos <pacho@gentoo.org> +files/ziproxy.initd-r1,
+  +ziproxy-3.3.1.ebuild, -ziproxy-3.3.0.ebuild:
+  Version bump, drop old, fix init.d script (#517560 by slick)
+