systemd[1]: Failed to start Amavisd-new is an interface between MTA and content checkers..


amavisd -u amavis -c /etc/amavisd/amavisd.conf debug
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: logging initialized, log level 0, syslog: amavis.mail
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: sd_notify (no socket): STATUS=Config files have been read, modules loaded.
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: starting. /usr/sbin/amavisd at ftp2.xxx.lt amavisd-new-2.11.1 (20181009), Unicode aware, LANG="C"
Mar 19 14:22:06.415 ftp2.xxx.lt /usr/sbin/amavisd[9728]: perl=5.016003, user=amavis, EUID: 994 (994); group=, EGID: 991 (991)
ERROR: MISSING REQUIRED ADDITIONAL MODULES:
DBD::mysql

Fix:
yum install "perl(DBD::mysql)"

OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version

Connecting to license.directadmin.com|185.42.221.168|:443… connected.
OpenSSL: error:1407742E:SSL routines:SSL23_GET_SERVER_HELLO:tlsv1 alert protocol version
Unable to establish SSL connection.
Error downloading the license file from relay server as well.

echo 1 > /root/.insecure_download

letsencrypt update account error

[Sat Mar 7 10:53:36 EET 2020] url=’https://acme-v01.api.letsencrypt.org/acme/reg/24591046′
[Sat Mar 7 10:53:36 EET 2020] payload='{“resource”: “reg”, “agreement”: “https://letsencrypt.org/documents/LE-SA-v1.1.1-August-1-2016.pdf”}’
[Sat Mar 7 10:53:36 EET 2020] POST
[Sat Mar 7 10:53:36 EET 2020] url=’https://acme-v01.api.letsencrypt.org/acme/reg/24591046′
[Sat Mar 7 10:53:36 EET 2020] _CURL=’curl -L –silent –dump-header /var/lib/acme/.acme.sh/http.header ‘
[Sat Mar 7 10:53:37 EET 2020] _ret=’0′
[Sat Mar 7 10:53:37 EET 2020] code=’400’
[Sat Mar 7 10:53:37 EET 2020] Update account error.
[Sat Mar 7 10:53:37 EET 2020] _on_issue_err
[Sat Mar 7 10:53:37 EET 2020] Please check log file for more details: /var/lib/acme/.acme.sh/acme.sh.log

./acme.sh/acme.sh --upgrade

[Sat Mar 7 11:01:11 EET 2020] Installing from online archive.
[Sat Mar 7 11:01:11 EET 2020] Downloading https://github.com/Neilpang/acme.sh/archive/master.tar.gz
[Sat Mar 7 11:01:13 EET 2020] Extracting master.tar.gz
[Sat Mar 7 11:01:13 EET 2020] Installing to /var/lib/acme/.acme.sh
[Sat Mar 7 11:01:13 EET 2020] Installed to /var/lib/acme/.acme.sh/acme.sh
[Sat Mar 7 11:01:13 EET 2020] Installing alias to ‘/var/lib/acme/.bashrc’
[Sat Mar 7 11:01:13 EET 2020] OK, Close and reopen your terminal to start using acme.sh
[Sat Mar 7 11:01:13 EET 2020] Good, bash is found, so change the shebang to use bash as preferred.
[Sat Mar 7 11:01:13 EET 2020] OK
[Sat Mar 7 11:01:13 EET 2020] Install success!
[Sat Mar 7 11:01:13 EET 2020] Upgrade success!

monitor process io

ps -eo state,pid,cmd | awk '/^D/ { print "proccess: " $3 ; system("cat /proc/"$2"/io") }'

proccess: [md1_raid10]
rchar: 0
wchar: 0
syscr: 0
syscw: 0
read_bytes: 0
write_bytes: 0
cancelled_write_bytes: 0
proccess :/opt/cpanel/ea-php56/root/usr/bin/php-cgi
rchar: 334932
wchar: 3941
syscr: 177
syscw: 26
read_bytes: 4096
write_bytes: 8192
cancelled_write_bytes: 4096

redirect input into dockerfile


docker build -t myimage:latest  -f- . <<EOF
FROM centos
CMD mkdir /app
WORKDIR /app
RUN echo "file contents" > file.txt
EOF

Sending build context to Docker daemon  16.43kB
Step 1/4 : FROM centos
 ---> 470671670cac
Step 2/4 : CMD mkdir /app
 ---> Using cache
 ---> cf9be82aca00
Step 3/4 : WORKDIR /app
 ---> Using cache
 ---> 24baea1f7712
Step 4/4 : RUN echo "file contents" > file.txt
 ---> Using cache
 ---> 61db761dc411
Successfully built 61db761dc411
Successfully tagged myimage:latest

docker run --name ttt -ti -d --privileged=true myimage  "/sbin/init"
docker exec -it ttt cat '/app/file.txt'
file contents