chutzpah 14/06/27 23:10:43 Added: conserver.initd-r1 Log: Revision bump, in the init script, make start handle the pidfile as well as stop (Portage version: 2.2.10/cvs/Linux x86_64, signed Manifest commit with key 0xE3F69979BB4B8928DA78E3D17CBF44EF)
Revision Changes Path 1.1 app-admin/conserver/files/conserver.initd-r1 file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/conserver/files/conserver.initd-r1?rev=1.1&view=markup plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/app-admin/conserver/files/conserver.initd-r1?rev=1.1&content-type=text/plain Index: conserver.initd-r1 =================================================================== #!/sbin/runscript # Copyright 1999-2014 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 # $Header: /var/cvsroot/gentoo-x86/app-admin/conserver/files/conserver.initd-r1,v 1.1 2014/06/27 23:10:43 chutzpah Exp $ depend() { need clock } checkconfig() { if [ ! -e /etc/conserver/conserver.cf ] ; then eerror "You need to create /etc/conserver/conserver.cf first." eerror "A sample is placed there to be renamed and ajusted." eerror "Read the man page or see /usr/share/doc/conserver-<version>/." return 1 fi if [ ! -e /etc/conserver/conserver.passwd ] ; then eerror "You need to create /etc/conserver/conserver.passwd first." eerror "A sample is placed there to be renamed and ajusted." eerror "Read the man page or see /usr/share/doc/conserver-<version>/." return 1 fi } start() { checkconfig || return 1 ebegin "Starting conserver" start-stop-daemon --start --quiet --pidfile /var/run/conserver.pid --exec \ /usr/sbin/conserver -- ${CONSERVER_OPTS} 1>/dev/null eend $? "Failed to start conserver" } stop() { ebegin "Stopping conserver" start-stop-daemon --stop --quiet --pidfile /var/run/conserver.pid eend $? "Failed to stop conserver" }
