#!/bin/bash # Create crontab with current environment variables ( printenv echo cat /crontab.tpl ) > /etc/cron.d/assembly-cron # Install crontab crontab /etc/cron.d/assembly-cron # Run cron daemon exec cron -f