2 # Modify template in /etc/alternc/templates/
3 # and launch alternc.install if you want
6 # envvars - default environment variables for apache2ctl
8 # this won't be correct after changing uid
11 # for supporting multiple apache2 instances
12 if [ "${APACHE_CONFDIR##/etc/apache2-}" != "${APACHE_CONFDIR}" ] ; then
13 SUFFIX="-${APACHE_CONFDIR##/etc/apache2-}"
18 # Since there is no sane way to get the parsed apache2 config in scripts, some
19 # settings are defined via environment variables and then used in apache2ctl,
20 # /etc/init.d/apache2, /etc/logrotate.d/apache2, etc.
21 export APACHE_RUN_USER=www-data
22 export APACHE_RUN_GROUP=www-data
23 export APACHE_PID_FILE=/run/apache2$SUFFIX.pid
24 export APACHE_RUN_DIR=/run/apache2$SUFFIX
25 export APACHE_LOCK_DIR=/var/lock/apache2$SUFFIX
26 # Only /var/log/apache2 is handled by /etc/logrotate.d/apache2.
27 export APACHE_LOG_DIR=/var/log/apache2$SUFFIX
29 ## The locale used by some modules like mod_dav
31 ## Uncomment the following line to use the system default locale instead:
32 #. /etc/default/locale
36 ## The command to get the status for 'apache2ctl status'.
37 ## Some packages providing 'www-browser' need '--dump' instead of '-dump'.
38 #export APACHE_LYNX='www-browser -dump'
39 export ALTERNC_HTML=%%ALTERNC_HTML%%
40 export ALTERNC_LOGS=%%ALTERNC_LOGS%%
41 export ALTERNC_MAIL=%%ALTERNC_MAIL%%