DEV Community

Roy
Roy

Posted on

auto start cron in wsl2

sudo tee /etc/profile.d/start_cron.sh <<EOF
if ! service cron status &> /dev/null; then
  sudo service cron start
fi
EOF
Enter fullscreen mode Exit fullscreen mode

Top comments (0)