Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 517560 - net-proxy/ziproxy-3.3.0 - WARNING: -c/--chuid is deprecated and will be removed in the future, please use -u/--user instead
Summary: net-proxy/ziproxy-3.3.0 - WARNING: -c/--chuid is deprecated and will be remov...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: No maintainer - Look at https://wiki.gentoo.org/wiki/Project:Proxy_Maintainers if you want to take care of it
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: keepdir-var-run_lock
  Show dependency tree
 
Reported: 2014-07-20 11:59 UTC by slick
Modified: 2015-06-20 10:18 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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)
+