X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=clients%2FHP%2Fsetup_cron;fp=clients%2FHP%2Fsetup_cron;h=fe1878eca87130a02aa0e69ac922ed9bc26d9187;hb=a8c84d2892f07a6863b68a11eb0a4a79ffd71fb5;hp=0000000000000000000000000000000000000000;hpb=95384f94f88aceeb5eef2d322210ba4a438b6512;p=clearscm.git diff --git a/clients/HP/setup_cron b/clients/HP/setup_cron new file mode 100755 index 0000000..fe1878e --- /dev/null +++ b/clients/HP/setup_cron @@ -0,0 +1,28 @@ +#!/bin/bash +################################################################################ +# +# File: setup_cron +# Description: This script sets up Cygwin's cron on the local machine +# Author: Andrew@DeFaria.com +# Created: +# Language: Bash Shell +# Modifications: +# +# (c) Copyright 2002, Andrew@DeFaria.com, all rights reserved +# +################################################################################ +me=$(basename $0) +# Make sure that certain directories and files do not exist! This is to let +# cron create them, which appears to be the only way to get these created +# correctly! +if [ ! -d /var/cron ]; then + rm -rf /var/cron + rm -rf /var/run/cron.pid + rm -rf /var/log/cron.log + + # Install cron service: + cygrunsrv -I cron -p /usr/sbin/cron -a -D -d "Cygwin cron" -e "MAILTO=$USER@Salira.com" -e "CYGWIN=ntsec" +fi + +# Start cron service +cygrunsrv -S cron