diff options
author | 2011-08-19 11:43:49 +0000 | |
---|---|---|
committer | 2011-08-19 11:43:49 +0000 | |
commit | c4b415918a880b314cd9b61ec326d3f389e3304c (patch) | |
tree | de44d4f67b48902e021729a684978f19099fe27b /net-irc/quassel/files | |
parent | Bump to 3.0.0, from gnome overlay for GNOME 3 (diff) | |
download | historical-c4b415918a880b314cd9b61ec326d3f389e3304c.tar.gz historical-c4b415918a880b314cd9b61ec326d3f389e3304c.tar.bz2 historical-c4b415918a880b314cd9b61ec326d3f389e3304c.zip |
Fix initscript wrt ipv6. Patch by Diego (flameeyes). Fixes bug #379861.
Package-Manager: portage-2.1.10.3/cvs/Linux x86_64
RepoMan-Options: --force
Diffstat (limited to 'net-irc/quassel/files')
-rw-r--r-- | net-irc/quassel/files/quasselcore.init | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/net-irc/quassel/files/quasselcore.init b/net-irc/quassel/files/quasselcore.init index e1059e791f04..58aedfa53649 100644 --- a/net-irc/quassel/files/quasselcore.init +++ b/net-irc/quassel/files/quasselcore.init @@ -1,7 +1,7 @@ #!/sbin/runscript -# Copyright 1999-2010 Gentoo Foundation +# Copyright 1999-2011 Gentoo Foundation # Distributed under the terms of the GNU General Public License v2 -# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/files/quasselcore.init,v 1.7 2010/11/04 14:22:45 scarabeus Exp $ +# $Header: /var/cvsroot/gentoo-x86/net-irc/quassel/files/quasselcore.init,v 1.8 2011/08/19 11:43:49 scarabeus Exp $ depend() { need localmount net @@ -16,9 +16,7 @@ QUASSEL_USER=${QUASSEL_USER:-"quassel"} checkconfig() { # set defaults - LISTEN=${LISTEN:-"0.0.0.0"} LOGLEVEL=${LOGLEVEL:-"Info"} - PORT=${PORT:-"4242"} # check config folder if [ ! -d "${CONFIGDIR}" ]; then @@ -45,14 +43,14 @@ start() { start-stop-daemon --start --user "${QUASSEL_USER}" --background --make-pidfile \ --pidfile "${PID}" \ --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ - --listen="${LISTEN}" --port="${PORT}" \ + ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ --configdir="${CONFIGDIR}" else # running on baselayout-1 start-stop-daemon --start --chuid "${QUASSEL_USER}" --background --make-pidfile \ --pidfile "${PID}" --env HOME="${CONFIGDIR}" \ --exec "${CORE}" -- --logfile="${LOGFILE}" --loglevel="${LOGLEVEL}" \ - --listen="${LISTEN}" --port="${PORT}" \ + ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ --configdir="${CONFIGDIR}" fi eend $? |