Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 121989 Details for
Bug 141018
app-backup/backuppc-3.0.0 version bump
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
An init.d script for a separate instance of Apache for BackupPC's web interface
backuppcApache2.init (text/plain), 2.54 KB, created by
Randy Barlow
on 2007-06-14 06:31:05 UTC
(
hide
)
Description:
An init.d script for a separate instance of Apache for BackupPC's web interface
Filename:
MIME Type:
Creator:
Randy Barlow
Created:
2007-06-14 06:31:05 UTC
Size:
2.54 KB
patch
obsolete
>#!/sbin/runscript ># Copyright 1999-2005 Gentoo Foundation ># Distributed under the terms of the GNU General Public License v2 > >opts="${opts} reload configtest" > ># this next comment is important, don't remove it - it has to be somewhere in ># the init script to kill off a warning that doesn't apply to us ># svc_start svc_stop > >depend() { > need net > use mysql dns logger netmount postgresql > after sshd >} > >configtest() { > ebegin "Checking Apache Configuration" > checkconfig > eend $? >} > >checkconfig() { > > SERVERROOT="${SERVERROOT:-/usr/lib/apache2}" > if [ ! -d ${SERVERROOT} ]; then > eerror "SERVERROOT does not exist: ${SERVERROOT}" > return 1 > fi > > CONFIGFILE="${CONFIGFILE:-/etc/backuppc/httpd.conf}" > [ ${CONFIGFILE:0:1} != "/" ] && CONFIGFILE="${SERVERROOT}/${CONFIGFILE}" > if [ ! -r "${CONFIGFILE}" ]; then > eerror "Unable to read configuration file: ${CONFIGFILE}" > return 1 > fi > > # check to see if the old config files exist and aren't used > if [[ "${CONFIGFILE}" != "/etc/apache2/conf/apache2.conf" && > -e "/etc/apache2/conf/apache2.conf" ]]; then > eerror "Found old apache2.conf in /etc/apache2/conf. Configuration locations \n have moved, please check ${CONFIGFILE} to make sure it is correct, \n and remove /etc/apache2/conf/apache2.conf.\n\n Please see http://www.gentoo.org/doc/en/apache-upgrading.xml\n for more information." > return 1 > fi > > [ -n "${SERVERROOT}" ] && APACHE2_OPTS="${APACHE2_OPTS} -d ${SERVERROOT}" > [ -n "${CONFIGFILE}" ] && APACHE2_OPTS="${APACHE2_OPTS} -f ${CONFIGFILE}" > [ -n "${STARTUPERRORLOG}" ] && APACHE2_OPTS="${APACHE2_OPTS} -E ${STARTUPERRORLOG}" > > # set a sane default for KEEPENV and OLDENV > KEEPENV=${KEEPENV:-PATH} > OLDENV= > > for env_var in ${KEEPENV}; do > OLDENV="${OLDENV} ${env_var}=`printenv ${env_var}`" > done > > APACHE2="env -i ${OLDENV} /usr/sbin/apache2" > > $APACHE2 ${APACHE2_OPTS} -t 1>/dev/null 2>&1 > ret=$? > if [ $ret -ne 0 ]; then > eerror "Apache2 has detected a syntax error in your configuration files:" > ${APACHE2} ${APACHE2_OPTS} -t > fi > > return $ret >} > >start() { > checkconfig || return 1 > ebegin "starting BackupPC apache2" > [ -f /var/log/apache2/ssl_scache ] && rm /var/log/apache2/ssl_scache > ${APACHE2} ${APACHE2_OPTS} -k start > eend $? >} > >stop() { > checkconfig || return 1 > ebegin "Stopping BackupPC apache2" > ${APACHE2} ${APACHE2_OPTS} -k stop > eend $? >} > >reload() { > if ! service_started "${myservice}" ; then > eerror "Apache is not running! Please start it before trying to reload it." > else > checkconfig || return 1 > ebegin "Reloading BackupPC apache2" > ${APACHE2} ${APACHE2_OPTS} -k graceful > eend $? > fi >}
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 141018
:
120083
|
120140
|
120152
|
120166
|
121984
|
121986
|
121988
| 121989 |
121990
|
121991
|
121992
|
122086
|
122492
|
122493
|
122494
|
124020
|
124022
|
128335
|
128338
|
128339
|
128674
|
162045
|
185117
|
194073
|
194074
|
194075
|
194077
|
194078
|
195552
|
195553