Browse Source

Added cron back into startup script

I've also stopped the warning message from appearing on the console.
It's still appears in the /sys/log/cron file unless you run:

sudo chown -R sys:sys cron/sys

before starting harvey.
Keith Poole 8 years ago
parent
commit
c95909b9b9
3 changed files with 2 additions and 2 deletions
  1. 1 1
      rc/bin/cpurc
  2. 1 1
      sys/src/cmd/auth/cron.c
  3. 0 0
      util/GO9PRUN

+ 1 - 1
rc/bin/cpurc

@@ -39,7 +39,7 @@ if(! test -e /srv/dns)
 # If you are on an auth server, start these before listening:
 #
 # auth/keyfs -wp -m /mnt/keys /adm/keys >/dev/null >[2=1]
-# auth/cron >>/sys/log/cron >[2=1] &
+auth/cron >>/sys/log/cron >[2=1] &
 
 # keep other bootes processes from creating capabilities
 rm -f '#¤/caphash'

+ 1 - 1
sys/src/cmd/auth/cron.c

@@ -292,7 +292,7 @@ readalljobs(void)
 			    !(d[i].qid.type & QTDIR))
 				continue;
 			if(strcmp(d[i].name, d[i].uid) != 0){
-				syslog(1, CRONLOG, "cron for %s owned by %s",
+				syslog(0, CRONLOG, "cron for %s owned by %s",
 					d[i].name, d[i].uid);
 				continue;
 			}

+ 0 - 0
util/GO9PRUN