github.com/maenmax/kairep@v0.0.0-20210218001208-55bf3df36788/docker-entrypoint.sh (about)

     1  #!/bin/bash
     2  
     3  # Generate Configuration
     4  /data/autopush/configs/generate_config.sh
     5  
     6  # Delete old log files that have been rotated every 10 mins
     7  watch -t -n 600 rm -fr /data/autopush/log/autoendpoint.log.* >> /data/autopush/log/autoendpoint.log &
     8  
     9  sleep 1
    10  
    11  # Start syslog
    12  rsyslogd -c 5
    13  
    14  # Start REP
    15  ./libexec/start_rep.sh
    16  
    17  sleep 2
    18  #cat /data/autopush/.version >> /data/autopush/log/autoendpoint.log
    19  
    20  # Send output to console
    21  tail -f /data/autopush/log/autoendpoint.log
    22