* [gentoo-commits] gentoo-x86 commit in net-misc/stunnel/files: stunnel.initd
@ 2009-08-23 1:34 Lance Albertson (ramereth)
0 siblings, 0 replies; 4+ messages in thread
From: Lance Albertson (ramereth) @ 2009-08-23 1:34 UTC (permalink / raw
To: gentoo-commits
ramereth 09/08/23 01:34:36
Added: stunnel.initd
Log:
Fix init script for #107484 & #102179 (chroot & multiple instance support)
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Revision Changes Path
1.1 net-misc/stunnel/files/stunnel.initd
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/files/stunnel.initd?rev=1.1&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/files/stunnel.initd?rev=1.1&content-type=text/plain
Index: stunnel.initd
===================================================================
#!/sbin/runscript
# Copyright 1999-2009 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# Default pidfile location
DEFAULT_PIDFILE="/var/run/stunnel/stunnel.pid"
FILES="/etc/stunnel/*.conf"
DAEMON="/usr/sbin/stunnel"
depend() {
need net
before logger
}
get_pids() {
local file=${1}
if test -f ${file} ; then
CHROOT=$(grep "^chroot" ${file} | sed "s;.*= *;;")
PIDFILE=$(grep "^pid" ${file} | sed "s;.*= *;;")
if [ "${PIDFILE}" == "" ] ; then
PIDFILE="${DEFAULT_PIDFILE}"
fi
if test -f ${CHROOT}/${PIDFILE} ; then
cat ${CHROOT}/${PIDFILE}
fi
fi
}
start() {
rm -rf /var/run/stunnel/*.pid
ebegin "Starting stunnel"
for file in ${FILES} ; do
if test -f "${file}" ; then
ARGS="${file} ${STUNNEL_OPTIONS}"
PROCLIST="$(get_pids ${file})"
CHROOT=$(grep "^chroot" ${file} | sed "s;.*= *;;")
PIDFILE=$(grep "^pid" ${file} | sed "s;.*= *;;")
if [ "${PROCLIST}" ] && kill -0 ${PROCLIST} 2> /dev/null ; then
ewarn " already running: ${file} "
elif ${DAEMON} ${ARGS} ; then
if test -f ${CHROOT}/${PIDFILE} ; then
einfo " ${file}"
else
eerror " error starting: ${file}"
fi
fi
fi
done
eend $?
}
stop() {
ebegin "Stopping stunnel"
for file in ${FILES} ; do
PROCLIST=$(get_pids ${file})
if [ "${PROCLIST}" ] && kill -0 ${PROCLIST} 2> /dev/null ; then
kill ${PROCLIST}
einfo " ${file} "
fi
done
eend $?
}
restart() {
stop
sleep 1
start
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-misc/stunnel/files: stunnel.initd
@ 2009-09-24 18:36 Lance Albertson (ramereth)
0 siblings, 0 replies; 4+ messages in thread
From: Lance Albertson (ramereth) @ 2009-09-24 18:36 UTC (permalink / raw
To: gentoo-commits
ramereth 09/09/24 18:36:42
Modified: stunnel.initd
Log:
Fix init script, stablize x86/amd64, fix header
(Portage version: 2.1.6.13/cvs/Linux x86_64)
Revision Changes Path
1.2 net-misc/stunnel/files/stunnel.initd
file : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/files/stunnel.initd?rev=1.2&view=markup
plain: http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/files/stunnel.initd?rev=1.2&content-type=text/plain
diff : http://sources.gentoo.org/viewcvs.py/gentoo-x86/net-misc/stunnel/files/stunnel.initd?r1=1.1&r2=1.2
Index: stunnel.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/stunnel/files/stunnel.initd,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- stunnel.initd 23 Aug 2009 01:34:36 -0000 1.1
+++ stunnel.initd 24 Sep 2009 18:36:42 -0000 1.2
@@ -62,7 +62,7 @@
}
restart() {
- stop
+ svc_stop
sleep 1
- start
+ svc_start
}
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-misc/stunnel/files: stunnel.initd
@ 2010-06-21 0:46 Lance Albertson (ramereth)
0 siblings, 0 replies; 4+ messages in thread
From: Lance Albertson (ramereth) @ 2010-06-21 0:46 UTC (permalink / raw
To: gentoo-commits
ramereth 10/06/21 00:46:41
Modified: stunnel.initd
Log:
Version bump, stablize 4.29-r1 & 4.31-r1, ebuild clean up, add 0.5s delay in init script to resolve bug #308931
(Portage version: 2.1.8.3/cvs/Linux x86_64)
Revision Changes Path
1.3 net-misc/stunnel/files/stunnel.initd
file : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/files/stunnel.initd?rev=1.3&view=markup
plain: http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/files/stunnel.initd?rev=1.3&content-type=text/plain
diff : http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/stunnel/files/stunnel.initd?r1=1.2&r2=1.3
Index: stunnel.initd
===================================================================
RCS file: /var/cvsroot/gentoo-x86/net-misc/stunnel/files/stunnel.initd,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- stunnel.initd 24 Sep 2009 18:36:42 -0000 1.2
+++ stunnel.initd 21 Jun 2010 00:46:41 -0000 1.3
@@ -38,6 +38,11 @@
if [ "${PROCLIST}" ] && kill -0 ${PROCLIST} 2> /dev/null ; then
ewarn " already running: ${file} "
elif ${DAEMON} ${ARGS} ; then
+ if ! test -f ${CHROOT}/${PIDFILE} ; then
+ # give the daemon time to create the pid file
+ # See bug #308931 for more details
+ sleep 0.5s
+ fi
if test -f ${CHROOT}/${PIDFILE} ; then
einfo " ${file}"
else
^ permalink raw reply [flat|nested] 4+ messages in thread
* [gentoo-commits] gentoo-x86 commit in net-misc/stunnel/files: stunnel.initd
@ 2015-04-17 12:03 Anthony G. Basile (blueness)
0 siblings, 0 replies; 4+ messages in thread
From: Anthony G. Basile (blueness) @ 2015-04-17 12:03 UTC (permalink / raw
To: gentoo-commits
blueness 15/04/17 12:03:11
Removed: stunnel.initd
Log:
Cleanup older versions.
(Portage version: 2.2.14/cvs/Linux x86_64, signed Manifest commit with key 0xF52D4BBA)
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2015-04-17 12:03 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-04-17 12:03 [gentoo-commits] gentoo-x86 commit in net-misc/stunnel/files: stunnel.initd Anthony G. Basile (blueness)
-- strict thread matches above, loose matches on Subject: below --
2010-06-21 0:46 Lance Albertson (ramereth)
2009-09-24 18:36 Lance Albertson (ramereth)
2009-08-23 1:34 Lance Albertson (ramereth)
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox