From 7dc07f22645326a1b3148a4571377ea96c10df63 Mon Sep 17 00:00:00 2001 From: thomasba Date: Thu, 21 Jan 2021 14:40:52 +0100 Subject: [PATCH] Start cron if not running ... --- zsh/zshrc.local | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/zsh/zshrc.local b/zsh/zshrc.local index 2f044b8..0b874b3 100644 --- a/zsh/zshrc.local +++ b/zsh/zshrc.local @@ -53,3 +53,7 @@ fi zstyle ':completion:*:*:kill:*:processes' command "ps -u $USER -o pid,user,comm,args -w -w" export EDITOR='vim' + +if [ ! -f '/var/run/crond.pid' ] ; then + sudo /etc/init.d/cron start +fi