ML
    • Recent
    • Categories
    • Tags
    • Popular
    • Users
    • Groups
    • Register
    • Login
    1. Topics
    2. Tags
    3. cron
    Log in to post
    • All categories
    • DustinB3403D

      Fedora 30 Server Cron not included by default

      IT Discussion
      • cron fedora 30 server • • DustinB3403
      15
      0
      Votes
      15
      Posts
      1.1k
      Views

      DustinB3403D

      Looks like adding under [Timer]

      OnBootSec=10min OnUnitActiveSec=4h

      Would do what I'm looking for, going to test.

    • DustinB3403D

      WSL crontab log location

      IT Discussion
      • cron crontab wsl • • DustinB3403
      2
      0
      Votes
      2
      Posts
      583
      Views

      DustinB3403D

      Never mind, twas a permissions issue.

    • hobbit666H

      script running with cron

      IT Discussion
      • cron ubuntu mate raspberry pi 3b+ • • hobbit666
      13
      0
      Votes
      13
      Posts
      983
      Views

      hobbit666H

      Looks like I needed to put

      export DISPLAY=":0"

      originally when I was trying it I didn't have the "

      Now to test the whole script 😄

    • IRJI

      Where am I supposted to add my cronjob?

      IT Discussion
      • crontab cron cron job • • IRJ
      7
      0
      Votes
      7
      Posts
      672
      Views

      stacksofplatesS

      If this is a systemd distro, you can just create a timer and service. That way instead of sending a mail message, it's automatically part of the logging for that unit.

      If it's a recent version of systemd, you can have a user based systemd that doesn't need escalated privileges. I just finished setting up borg for backup since I'm on Fedora Silverblue now (couldn't use the old way), and I just set up user based systemd units to do the backup.

    • JaredBuschJ

      How to use a systemd timer instead of cron to automate a git pull

      IT Discussion
      • systemd timer cron fedora rhel git pull git systemd timers • • JaredBusch
      13
      6
      Votes
      13
      Posts
      3.1k
      Views

      stacksofplatesS

      @jaredbusch said in How to use a systemd timer instead of cron to automate a git pull:

      Oh look I just found this posted here already /sigh..

      So many questions I could have not asked of @stacksofplates, had I recalled this thread.
      https://mangolassi.it/topic/13455/systemd-timers-instead-of-cron

      I honestly forgot I posted that.

    • DustinB3403D

      Snipe-IT Shell Commands and Backing up

      IT Discussion
      • snipe-it backup sql shell cron • • DustinB3403
      4
      1
      Votes
      4
      Posts
      2.4k
      Views

      DustinB3403D

      @hobbit666 no this is just for the mysql database.

    • stacksofplatesS

      Systemd timers instead of cron

      IT Discussion
      • cron linux unix systemd systemd timers • • stacksofplates
      3
      4
      Votes
      3
      Posts
      4.5k
      Views

      stacksofplatesS

      @obsolesce said in Systemd timers instead of cron:

      @stacksofplates said in Systemd timers instead of cron:

      Now just enable each one
      systemctl enable backup-tower backup-pbx backup.target backup.timer

      I'm not sure how this works.
      Why wouldn't you just enable the backup.timer? Why add everything else in there?
      I'm not clear on how it's all linked.

      Yeah you don't. I honestly don't remember why I had it this way. Could have just been an accident. Was quite a while ago.

    • matteo nunziatiM

      Anacron Jobs on a CentOS 7 Server

      IT Discussion
      • centos centos 7 cron crontab anacron scheduling linux rhel rhel 7 • • matteo nunziati
      28
      2
      Votes
      28
      Posts
      6.9k
      Views

      scottalanmillerS

      @matteo-nunziati said in Anacron Jobs on a CentOS 7 Server:

      @JaredBusch well never considered the workload on servers. I don't know how they manage it! maybe not so many use unattended upgraqdes in debian.

      I definitely feel like Ubuntu users don't keep their systems as up to date 😉

    • scottalanmillerS

      Scheduling Simple Local Linux Reboots

      IT Discussion
      • linux cron scheduling reboot system administration • • scottalanmiller
      25
      3
      Votes
      25
      Posts
      3.1k
      Views

      scottalanmillerS

      In larger teams, you normally have 24x7 staff. So the reboot schedule goes to the current shift to monitor. It's only shops that lack round the clock scheduling that have this as a real issue, and if you don't have 24x7, shouldn't you be outsourcing to a shop that does if you really need that at all? I think that this normally (maybe not always) becomes a problem when you are dealing with layers and layers of other problems like not having enough IT staff to properly staff a department without causing unnecessary cost and risk and choosing not to outsource to an MSP/ITSP that could do this cost effectively.

    • scottalanmillerS

      UNIX Scheduling with cron

      IT Discussion
      • linux unix sam linux administration cron cron job crontab bsd solaris • • scottalanmiller
      15
      8
      Votes
      15
      Posts
      6.8k
      Views

      A

      Thanks!

    • gjacobseG

      Elastix reboot: cron job?

      IT Discussion
      • elastix best practice linux best practices unix cron reboots • • gjacobse
      24
      1
      Votes
      24
      Posts
      8.3k
      Views

      scottalanmillerS

      @g.jacobse said:

      I rant that over in my mind, and it seemed that if the reboot failed, you would not get any type of email.

      If the reboot failed to run completely (like the system was down, cron had crashed, things were frozen) you would get no email either. You are making the system report on itself with is not good.

      That's why the system should reboot itself (no way around that) but the monitoring of whether it is up or not should be done externally.

    • thanksajdotcomT

      Shares Not Mounting on Reboot

      IT Discussion
      • cron linux cron job • • thanksajdotcom
      20
      0
      Votes
      20
      Posts
      3.5k
      Views

      thanksajdotcomT

      @Reid-Cooper said:

      That's interesting. Quotes without the escapes should make that unnecessary. Interesting way to fix it, though.

      Yeah, the quotes was still showing it as a syntax error.

    • thanksajdotcomT

      Extract Specific Info from Output

      IT Discussion
      • cli linux cron • • thanksajdotcom
      9
      0
      Votes
      9
      Posts
      3.3k
      Views

      thanksajdotcomT

      @thecreativeone91 said:

      @thanksajdotcom said:

      @scottalanmiller said:

      Is the bottom portion always the same length in lines? If so, the tail command will do it.

      Id have to confirm but pretty sure. How do you tail 16 lines?

      Tail -16 /location/of/log.log

      That did it. Perfect! Thanks!

    • thanksajdotcomT

      Check When Cron Jobs Last Ran

      IT Discussion
      • linux cron job cron • • thanksajdotcom
      8
      0
      Votes
      8
      Posts
      5.3k
      Views

      thanksajdotcomT

      I found a thread on the Ubuntu forums here: ubuntuforums.org/showthread.php?t=1845962

      It pointed me to a conf file located here: /etc/rsyslog.d/50-default.conf

      I used vi to uncomment this line:

      cron.* /var/log/cron.log

      Now I should get cron logs. I'll check the other place too. Thanks!

    • 1 / 1