• FreshLight
    link
    fedilink
    27 months ago

    Oh fuck. I’ll use this from now on. Except for if I won’t use it next week. Then I’ll forget about it because my memory is a damn sieve.

    • @Catoblepas@lemmy.blahaj.zone
      link
      fedilink
      27 months ago

      Just take the next step and make a text file you dump all these commands into and then forget about in a week. When you randomly stumble across it years from now you’ll be able to say “wow, I could have used this 10 months ago if I remembered it existed!”

  • Rose
    link
    fedilink
    07 months ago

    Well, systemd developers made one of the classic blunders a software developer can do: make a program that has to deal with time and dates. Every time I have to deal with timestamps I’m like “oh shit, here we go again”.

    Anyway, as I understood it the reason this is in systemd is because they wanted to replace cron, and it’s fine by me because cron has it’s own brain-hurt. (The cron syntax is something that always makes me squint real hard for a while.)

    • Phoenixz
      link
      fedilink
      07 months ago

      I’m sorry but Cron is really easy, of all systems.

      Try using systemd with an ssh server that you want to have running on a non standard port. On non systemd it’s a 15 second ordeal while on systemd I don’t even know where to start, I pushed it out of my memories. It’s something something create files here, restart demons there, removing other files, it is WAY WAY over complicated

      • @offspec@lemmy.world
        link
        fedilink
        07 months ago

        What do you mean? You literally just change the /etc/sshd config to point at a different port do you not?

        • Phoenixz
          link
          fedilink
          06 months ago

          Oh yeah, without systemd that’s all there is to it. With systemd, however, port management is taken out of the ssh config and is done how it was decades ago

            • Phoenixz
              link
              fedilink
              14 months ago

              .Aube it’s distro dependent, but Ubuntu updated ssh a while ago to be passed through systemd. Updating the port requires systemd configuration changes

  • @mlg@lemmy.world
    link
    fedilink
    English
    07 months ago

    Systemd ignored my calendar override for the builtin raid scanner, so every week my server would chug to a halt to scan the entire array.

    In true systemd fashion, the documentation could not explain this behavior, so I had to make a full copy override instead of a merge override because reasons.

  • Saki
    link
    fedilink
    English
    06 months ago

    Okay this is cool and all, but why would systemd have a calendar?

    (also how do i do this)

    • flamingos-cantOP
      link
      fedilink
      English
      16 months ago

      As others have said on this thread, it’s because systemd has fairly advanced timer system that basically requires implementing a calendar.

      To do it, the command is in the screenshot systemd-analyze calendar "Tue *-12-25".

    • exu
      link
      fedilink
      English
      07 months ago

      You need a calendar and time handling anyways for logging purposes and to set timers correctly. It’s likely not that much extra work exposing that functionality.

      • @Kusimulkku@lemm.ee
        link
        fedilink
        07 months ago

        No, UNIX philosophy demands that every single one of those things is one or more separate things and that half of them are poorly or not at all maintained. Just like God intended.