1 #!/bin/bash 2 3 # Start cron 4 echo "$(date): Starting cron service..." 5 service cron start 6 7 # Start the KISSmo Perl application in daemon mode 8 echo "$(date): Starting KISSmo Perl application..." 9 perl paste.pl daemon -m production -l http://0.0.0.0:7878 10 11 # Keep the container running indefinitely 12 echo "$(date): Tail -f /dev/null to keep container alive..." 13 tail -f /dev/null