From mboxrd@z Thu Jan 1 00:00:00 1970 From: Benjamin Slade Subject: mcron Date: Fri, 03 Aug 2018 23:33:48 -0600 Message-ID: <87ftzug0g3.fsf@jnanam.net> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:44784) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1flpCO-00045r-Mx for help-guix@gnu.org; Sat, 04 Aug 2018 01:33:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1flpCK-0005wQ-A9 for help-guix@gnu.org; Sat, 04 Aug 2018 01:33:56 -0400 Received: from mail-it0-x22d.google.com ([2607:f8b0:4001:c0b::22d]:40326) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1flpCJ-0005wE-W1 for help-guix@gnu.org; Sat, 04 Aug 2018 01:33:52 -0400 Received: by mail-it0-x22d.google.com with SMTP id h23-v6so11377033ita.5 for ; Fri, 03 Aug 2018 22:33:51 -0700 (PDT) Received: from sindhu ([172.83.40.110]) by smtp.gmail.com with ESMTPSA id r3-v6sm776087itb.16.2018.08.03.22.33.49 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 03 Aug 2018 22:33:50 -0700 (PDT) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-guix-bounces+gcggh-help-guix=m.gmane.org@gnu.org Sender: "Help-Guix" To: help-guix@gnu.org nnI'm having trouble getting mcron to work. I have configured it in /etc/config.scm similarly to the example given in the manual, but it the mcron service seems to immediately stop. I've tried `sudo herd enable mcron` and `sudo herd start mcron`, which work, but then when I check its status, I find mcron is disabled and not running. My /etc/config.scm looks like this: ````` ;; This is an operating system configuration template ;; for a "desktop" setup with GNOME and Xfce where the ;; root partition is encrypted with LUKS. (use-modules (gnu) (gnu services ssh) (gnu services mcron) (gnu system nss) (gnu packages lisp) (gnu packages wm) (gnu packages linux) (gnu packages guile) (gnu packages backup)) (use-service-modules desktop networking) (use-package-modules certs gnome wm base idutils xorg) (define updatedb-job ;; Run 'updatedb' at 3AM every day. Here we write the ;; job's action as a Scheme procedure. #~(job '(next-hour '(3)) (lambda () (execl (string-append #$findutils "/bin/updatedb") "updatedb" "--prunepaths=/tmp /var/tmp /gnu/store")))) (define garbage-collector-job ;; Collect garbage 5 minutes after midnight every day. ;; The job's action is a shell command. #~(job "5 0 * * *" ;Vixie cron syntax "guix gc -F 1G")) (define idutils-job ;; Update the index database as user "charlie" at 12:15PM ;; and 19:15PM. This runs from the user's home directory. #~(job '(next-minute-from (next-hour '(12 19)) '(15)) (string-append #$idutils "/bin/mkid src") #:user "emacsomancer")) (define mbsync-mail-fetch-emacsomancer ;; fetch mail via isync/mbsync for mu/mu4e every 10 minutes #~(job "5/* * * * *" ;Vixie cron syntax "/home/emacsomancer/.guix-profile/bin/mbsync -a" #:user "emacsomancer")) (define test-emacsomancer ;; fetch mail via isync/mbsync for mu/mu4e every 10 minutes #~(job "1/* * * * *" ;Vixie cron syntax "/home/emacsomancer/.guix-profile/bin/touch /home/emacsomancer/hello" #:user "emacsomancer")) (operating-system (host-name "guixy") (timezone "US/Mountain") (locale "en_GB.utf8") ;; Use the UEFI variant of GRUB with the EFI System ;; Partition mounted on /boot/efi. ;; -> actually using BIOS because guixsd 0.15 live usb didn't probe efi ; (bootloader (grub-configuration (device "/dev/sda"))) (bootloader (bootloader-configuration (bootloader grub-bootloader) (target "/dev/sda"))) ;; Specify a mapped device for the encrypted root partition. ;; The UUID is that returned by 'cryptsetup luksUUID'. (mapped-devices (list (mapped-device (source (uuid "e33cc543-9aa9-467a-a9e8-96e1f092b866")) (target "guiksdelux") (type luks-device-mapping)) ;; (mapped-device ;; (source (uuid "7c97b263-4adc-b4e9-a1d7-9d3de8eb9694")) ;; (target "guix-home") ;; (type luks-device-mapping)) )) (file-systems (cons* (file-system (device (uuid "18c93271-4fcd-484b-ac1a-f4670b6d2b7c" 'ext4)) (mount-point "/") (type "ext4")) (file-system (device "/dev/mapper/guiksdelux") (mount-point "/home") (type "ext4") (dependencies mapped-devices)) ; (file-system ; (device "/dev/mapper/guix-home") ; (mount-point "/home") ; (type "ext4") ; (dependencies mapped-devices)) ; (file-system ; (device (uuid "35ee1733-b91f-4bbc-3bdc-86b5bd25489f" 'ext2)) ; (mount-point "/boot") ; (type "ext2")) ; (file-system ; (device (uuid "F1D1-FC28" 'fat)) ; (mount-point "/boot/efi") ; (type "vfat")) %base-file-systems)) (users (cons (user-account (name "emacsomancer") ; (comment "") (group "users") (supplementary-groups '("wheel" "netdev" "audio" "video")) (home-directory "/home/emacsomancer")) %base-user-accounts)) ;; Add GNOME and/or Xfce---we can choose at the log-in ;; screen with F1. Use the "desktop" services, which ;; include the X11 log-in service, networking with ;; NetworkManager, and more. (packages (cons* sbcl-stumpwm ;common lisp window manager ; awesome ;lua window manager nss-certs ;for HTTPS access gvfs ;for user mounts xset ; no beeps &c. tlp ; NEED TO SET UP acpi ; battery (still not accessible?) thinkfan ; controlling ThinkPad fans borg ; python-based backup ; libchop ; guile-based backup (chop-backup) ---- NOT WORKING network-manager ; probably change to something else network-manager-applet ; probably change to something else ; mcron ; guile-based cron %base-packages)) ;; Use the "desktop" services, which include the X11 ;; log-in service, networking with NetworkManager, and more. (services (cons* (mcron-service (list garbage-collector-job updatedb-job idutils-job mbsync-mail-fetch-emacsomancer ; test-emacsomancer )) (service openssh-service-type) %desktop-services)) ;; Allow resolution of '.local' host names with mDNS. (name-service-switch %mdns-host-lookup-nss)) ```` I'm not sure why I can't get mcron to start. -- Benjamin Slade - https://babbagefiles.xyz `(pgp_fp: ,(21BA 2AE1 28F6 DF36 110A 0E9C A320 BBE8 2B52 EE19)) '(sent by mu4e on Emacs running under GNU/Linux . https://gnu.org ) `(Choose Linux ,(Choose Freedom) . https://linux.com )