Remove non-functional syslog and logrotate facilities
This commit is contained in:
@@ -38,7 +38,7 @@ all: build bin service clean
|
|||||||
|
|
||||||
build: prepare base
|
build: prepare base
|
||||||
$(call script,cleanup)
|
$(call script,cleanup)
|
||||||
@echo 'RUN chmod +x /opt/init.d/*' >> ${FILE}
|
@echo 'RUN chmod +x /opt/init.d/* || :' >> ${FILE}
|
||||||
@echo 'CMD ["/opt/init"]' >> ${FILE}
|
@echo 'CMD ["/opt/init"]' >> ${FILE}
|
||||||
@docker build -t $(NAME):$(VERSION) $(ARGS) -f $(FILE) $(BASE)
|
@docker build -t $(NAME):$(VERSION) $(ARGS) -f $(FILE) $(BASE)
|
||||||
@rm ${FILE}
|
@rm ${FILE}
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
base: cron syslog sshd
|
base: cron sshd
|
||||||
$(call script,utilities)
|
$(call script,utilities)
|
||||||
$(call script,init)
|
$(call script,init)
|
||||||
$(call script,runit)
|
$(call script,runit)
|
||||||
$(call script,logrotate)
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
logrotate:
|
|
||||||
ln -f $(BASE)/scripts/*_$@.sh build/scripts
|
|
||||||
@@ -1,3 +0,0 @@
|
|||||||
syslog:
|
|
||||||
$(call script,$@)
|
|
||||||
$(call runit,$@)
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#!/bin/sh
|
|
||||||
set -e
|
|
||||||
[ -r /etc/default/syslog-ng ] && . /etc/default/syslog-ng
|
|
||||||
case "x$CONSOLE_LOG_LEVEL" in
|
|
||||||
x[1-8])
|
|
||||||
dmesg -n $CONSOLE_LOG_LEVEL
|
|
||||||
;;
|
|
||||||
x)
|
|
||||||
;;
|
|
||||||
*)
|
|
||||||
echo "CONSOLE_LOG_LEVEL is of unaccepted value."
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
if [ ! -e /dev/xconsole ]
|
|
||||||
then
|
|
||||||
mknod -m 640 /dev/xconsole p
|
|
||||||
fi
|
|
||||||
syslog-ng -F -p /var/run/syslog-ng.pid
|
|
||||||
@@ -1,18 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Environment
|
|
||||||
export_env PHP_CONFIG /host/etc/php.ini
|
|
||||||
export_env PHP_FCGI_CONFIG /etc/lighttpd/conf-enabled/15-fastcgi-php.conf
|
|
||||||
export_env PHP_FCGI_PORT 5555
|
|
||||||
export_env PHP_FCGI_CHILDREN 16
|
|
||||||
export_env PHP_FCGI_MAX_REQUESTS 2000
|
|
||||||
|
|
||||||
## Configuration
|
|
||||||
ln -s /etc/lighttpd/conf-available/10-fastcgi.conf /etc/lighttpd/conf-enabled/
|
|
||||||
cp /etc/lighttpd/conf-available/15-fastcgi-php.conf /etc/lighttpd/conf-enabled/
|
|
||||||
sed -i "s,\(\"PHP_FCGI_CHILDREN\"\s*=>\s*\"\).*$,\1$PHP_FCGI_CHILDREN\"\,," $PHP_FCGI_CONFIG
|
|
||||||
sed -i "s,\(\"PHP_FCGI_MAX_REQUESTS\"\s*=>\s*\"\).*$,\1$PHP_FCGI_MAX_REQUESTS\"\,," $PHP_FCGI_CONFIG
|
|
||||||
sed -i "s,\(\"socket\"\),\"host\" => \"127.0.0.1\"\,\n\t\t\"port\" => $PHP_FCGI_PORT\,\n\t\t#\1," $PHP_FCGI_CONFIG
|
|
||||||
@@ -1,7 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
set -e
|
|
||||||
source /build/config
|
|
||||||
set -x
|
|
||||||
|
|
||||||
## Install logrotate
|
|
||||||
apt_get_install_permanent logrotate
|
|
||||||
Reference in New Issue
Block a user