Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 316067 Details for
Bug 423145
net-irc/quassel support for syslog in init script
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
init script which actually does work
quasselcore.init.works (text/plain), 2.10 KB, created by
Michael Mair-Keimberger (iamnr3)
on 2012-06-23 13:46:43 UTC
(
hide
)
Description:
init script which actually does work
Filename:
MIME Type:
Creator:
Michael Mair-Keimberger (iamnr3)
Created:
2012-06-23 13:46:43 UTC
Size:
2.10 KB
patch
obsolete
>#!/sbin/runscript ># 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.8 2011/08/19 11:43:49 scarabeus Exp $ > >depend() { > need localmount net > after bootmisc postgres >} > >CORE="$(which quasselcore)" >PID="/var/run/quassel.pid" >LOGFILE=${LOGFILE:-"/var/log/quassel.log"} >CONFIGDIR=${CONFIGDIR:-"/var/lib/quassel"} >QUASSEL_USER=${QUASSEL_USER:-"quassel"} >START_CONFIG="" > >checkconfig() { > # set defaults > LOGLEVEL=${LOGLEVEL:-"Info"} > > # check config folder > if [ ! -d "${CONFIGDIR}" ]; then > mkdir "${CONFIGDIR}" || return 1 > fi > # permissions always changed just to avoid runtime issues > chown -R "${QUASSEL_USER}":"${QUASSEL_USER}" "${CONFIGDIR}" || return 1 > > # check log file > if [ ! -e "${LOGFILE}" ]; then > touch "${LOGFILE}" || return 1 > fi > # permissions always changed just to avoid runtime issues > chown "${QUASSEL_USER}":"${QUASSEL_USER}" "${LOGFILE}" || return 1 >} > >start() { > checkconfig || return 1 > > # turn on/off logging > if yesno ${QUASSEL_LOGFILE} || yesno ${QUASSEL_SYSLOG}; then > START_CONFIG=""${START_CONFIG}"--loglevel="${LOGLEVEL}"" > yesno ${QUASSEL_LOGFILE} && START_CONFIG=""${START_CONFIG}" --logfile="${LOGFILE}"" > yesno ${QUASSEL_SYSLOG} && START_CONFIG=""${START_CONFIG}" --syslog" > fi > > ebegin "Starting Quassel Core" > > if [ -n "${RC_UNAME}" ]; then > # running on baselayout-2/openrc >echo " start-stop-daemon --start --user "${QUASSEL_USER}" --background --make-pidfile \ > --pidfile "${PID}" \ > --exec "${CORE}" -- "${START_CONFIG}" \ > ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ > --configdir="${CONFIGDIR}"" > /root/test > /root/test > else > # running on baselayout-1 > start-stop-daemon --start --chuid "${QUASSEL_USER}" --background --make-pidfile \ > --pidfile "${PID}" --env HOME="${CONFIGDIR}" \ > --exec "${CORE}" -- "${START_CONFIG}" \ > ${LISTEN:+--listen="${LISTEN}"} ${PORT:+--port="${PORT}"} \ > --configdir="${CONFIGDIR}" > fi > eend $? >} > >stop() { > ebegin "Stopping Quassel Core" > start-stop-daemon --stop --pidfile "${PID}" --exec "${CORE}" > eend $? >}
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 423145
:
316063
|
316065
| 316067