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

      Fedora 30 Server Cron not included by default
      IT Discussion • cron fedora 30 server • • DustinB3403

      15
      0
      Votes
      15
      Posts
      316
      Views

      DustinB3403

      Looks like adding under [Timer]

      OnBootSec=10min OnUnitActiveSec=4h

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

    • DustinB3403

      WSL crontab log location
      IT Discussion • cron crontab wsl • • DustinB3403

      2
      0
      Votes
      2
      Posts
      151
      Views

      DustinB3403

      Never mind, twas a permissions issue.

    • hobbit666

      script running with cron
      IT Discussion • cron ubuntu mate raspberry pi 3b+ • • hobbit666

      13
      0
      Votes
      13
      Posts
      271
      Views

      hobbit666

      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 😄

    • IRJ

      Where am I supposted to add my cronjob?
      IT Discussion • crontab cron cron job • • IRJ

      7
      0
      Votes
      7
      Posts
      196
      Views

      stacksofplates

      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.

    • JaredBusch

      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
      1773
      Views

      stacksofplates

      @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.

    • DustinB3403

      Snipe-IT Shell Commands and Backing up
      IT Discussion • snipe-it backup sql shell cron • • DustinB3403

      4
      1
      Votes
      4
      Posts
      1877
      Views

      DustinB3403

      @hobbit666 no this is just for the mysql database.

    • stacksofplates

      Systemd timers instead of cron
      IT Discussion • cron linux unix systemd systemd timers • • stacksofplates

      3
      4
      Votes
      3
      Posts
      3079
      Views

      stacksofplates

      @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 nunziati

      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
      5544
      Views

      scottalanmiller

      @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 😉

    • scottalanmiller

      Scheduling Simple Local Linux Reboots
      IT Discussion • linux cron scheduling reboot system administration • • scottalanmiller

      25
      3
      Votes
      25
      Posts
      2017
      Views

      scottalanmiller

      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.

    • scottalanmiller

      UNIX Scheduling with cron
      IT Discussion • linux unix sam linux administration cron cron job crontab bsd solaris • • scottalanmiller

      15
      8
      Votes
      15
      Posts
      5329
      Views

      A

      Thanks!

    • gjacobse

      Elastix reboot: cron job?
      IT Discussion • elastix best practice linux best practices unix cron reboots • • gjacobse

      24
      1
      Votes
      24
      Posts
      7200
      Views

      scottalanmiller

      @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.

    • thanksajdotcom

      Shares Not Mounting on Reboot
      IT Discussion • cron linux cron job • • thanksajdotcom

      20
      0
      Votes
      20
      Posts
      2916
      Views

      thanksajdotcom

      @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.

    • thanksajdotcom

      Extract Specific Info from Output
      IT Discussion • cli linux cron • • thanksajdotcom

      9
      0
      Votes
      9
      Posts
      3052
      Views

      thanksajdotcom

      @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!

    • thanksajdotcom

      Check When Cron Jobs Last Ran
      IT Discussion • linux cron job cron • • thanksajdotcom

      8
      0
      Votes
      8
      Posts
      3253
      Views

      thanksajdotcom

      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!