this post was submitted on 27 Oct 2024
1287 points (99.2% liked)

linuxmemes

21172 readers
1405 users here now

Hint: :q!


Sister communities:


Community rules (click to expand)

1. Follow the site-wide rules

2. Be civil
  • Understand the difference between a joke and an insult.
  • Do not harrass or attack members of the community for any reason.
  • Leave remarks of "peasantry" to the PCMR community. If you dislike an OS/service/application, attack the thing you dislike, not the individuals who use it. Some people may not have a choice.
  • Bigotry will not be tolerated.
  • These rules are somewhat loosened when the subject is a public figure. Still, do not attack their person or incite harrassment.
  • 3. Post Linux-related content
  • Including Unix and BSD.
  • Non-Linux content is acceptable as long as it makes a reference to Linux. For example, the poorly made mockery of sudo in Windows.
  • No porn. Even if you watch it on a Linux machine.
  • 4. No recent reposts
  • Everybody uses Arch btw, can't quit Vim, and wants to interject for a moment. You can stop now.

  • Please report posts and comments that break these rules!

    founded 1 year ago
    MODERATORS
    top 50 comments
    sorted by: hot top controversial new old
    [–] umbraroze@lemmy.world 24 points 6 days ago (2 children)

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

    [–] flying_sheep@lemmy.ml 2 points 6 days ago

    Yeah and they actually added some usability in the form of that utility helping you debug what you're doing. Pretty nice!

    [–] phoenixz@lemmy.ca 0 points 6 days ago (2 children)

    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 5 points 6 days ago (1 children)

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

    [–] phoenixz@lemmy.ca 1 points 9 hours ago (1 children)

    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

    [–] offspec@lemmy.world 2 points 5 hours ago

    I run systemd with a different sshd service port and that's all I changed

    [–] umbraroze@lemmy.world 2 points 6 days ago

    Well cron is "really easy" as long as your requirements are really easy too.

    Run a task at specific hour or minute or weekday or whatever? Easy peasy.

    Run a task at complex intervals? What the fuck is this syntax. How do I get it right even. Guess I'll come back next week and see if it ran correctly.

    Actually have to look at the calendar to schedule this stuff? Oh lawd here come the hacks, they're so wide, they're coming

    Run a task at, say, granularity of seconds? Of course it's not supported, who would ever need that, if you really need that just do an evil janky shellscript hack

    [–] DieserTypMatthias@lemmy.ml 0 points 6 days ago

    Just write your own initialization system in bash. It is more reliable and less bloated.

    [–] FreshLight@sh.itjust.works 240 points 1 week ago (8 children)

    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 121 points 1 week ago (2 children)

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

    [–] boredsquirrel 54 points 1 week ago (2 children)

    I make a separate text file per command so I can search them!

    Which I dont.

    [–] variants@possumpat.io 32 points 1 week ago

    I usually print these out and put them in a safe deposit box at a bank so I never lose them

    load more comments (1 replies)
    load more comments (1 replies)
    load more comments (7 replies)
    [–] _____@lemm.ee 118 points 1 week ago (4 children)

    me: systemd is not that bloated

    systemd:

    [–] exu@feditown.com 53 points 1 week ago (1 children)

    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 16 points 1 week ago (3 children)

    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.

    load more comments (3 replies)
    load more comments (3 replies)
    [–] mogoh@lemmy.ml 98 points 1 week ago (6 children)

    Usually such things have a simple explanation. systemd does a lot with time and date, for example scheduling tasks. It's quite obvious that it has this capabilities, when you think about it.

    [–] m4m4m4m4@lemmy.world 46 points 1 week ago (8 children)

    Usually such things have a simple explanation. systemd does a lot ~~with time and date, for example scheduling tasks. It's quite obvious that it has this capabilities, when you think about it.~~

    FTFY

    load more comments (8 replies)
    load more comments (5 replies)
    [–] rustydrd@sh.itjust.works 88 points 1 week ago (3 children)

    systemd is a great operating system, it just lacks a decent text editor.

    [–] fallingcats@discuss.tchncs.de 38 points 1 week ago (1 children)

    Good thing it's editor agnostic so everybody can do the right thing in the end and choose nano

    [–] ricdeh@lemmy.world 40 points 1 week ago (7 children)
    load more comments (7 replies)
    load more comments (2 replies)
    [–] solidgrue@lemmy.world 60 points 1 week ago

    Thanks! I hate this. 🖤

    [–] PanArab@lemm.ee 49 points 1 week ago* (last edited 1 week ago) (5 children)

    systemd is the future, and the future has been here for over a decade and yet old Unix and BSD purists still cry about it

    I have one simple thing to say to the downvoters: I am not using a minicomputer from 1970, why should I be bound by the limits set then?

    [–] pimeys@lemmy.nauk.io 41 points 1 week ago

    Yeah, I'm also one of these people silently enjoying systemd and wayland. Every now and then there's fuzz on one of these. I shrug, and move on still enjoying both of them.

    load more comments (4 replies)
    [–] lazynooblet@lazysoci.al 46 points 1 week ago (5 children)

    In the UK, if Christmas or New Year falls on a weekend, a seperate equivalent holiday is made during the week to compensate.

    [–] blackn1ght@feddit.uk 17 points 1 week ago (4 children)

    Wait, do other countries not do this? So if a public holiday falls on a Saturday it doesn't get pushed to Monday?

    load more comments (4 replies)
    load more comments (4 replies)
    [–] clay_pidgin@sh.itjust.works 40 points 1 week ago

    That's pretty clever.

    [–] WhiskyTangoFoxtrot@lemmy.world 36 points 1 week ago

    Finally we can put all the controversy around systemd to rest.

    [–] peopleproblems@lemmy.world 31 points 1 week ago

    Well. I mean, that's pretty cool. I don't think I would have ever guess that was an actual function from systemd but here we are

    [–] frezik@midwest.social 29 points 1 week ago (2 children)

    This plays some kind of role in the debate of systemd being good or not. I'm not sure if goes in the good column or the bad column, but I know it goes into a column.

    [–] barsquid@lemmy.world 22 points 1 week ago (3 children)

    I am typically in the group saying "systemd is overlarge with too many responsibilities" but this capability makes perfect sense for its job running services. Probably the good column.

    load more comments (3 replies)
    load more comments (1 replies)
    [–] ScreaminOctopus@sh.itjust.works 22 points 1 week ago

    This is basically just a way nicer, more flexible cron syntax being dressed up as something ridiculous. There are legitimate reasons for wanting something like this, like running some sort of resource heavy disk optimization the first Friday evening of every month or something.

    [–] kameecoding@lemmy.world 20 points 1 week ago (3 children)

    It is literally happening this year.

    24th is Tuesday. 1st of January is Wednesday and as a bonus Jan 6 is also a holiday in my country and that's Monday.

    So from dec 22 to jan 6 i can be home by using just 6 days off

    load more comments (3 replies)
    [–] DmMacniel@feddit.org 19 points 1 week ago (1 children)

    God, I only have one question...

    Why?

    [–] alteredEnvoy@sopuli.xyz 51 points 1 week ago (1 children)
    load more comments (1 replies)
    [–] mariusafa@lemmy.sdf.org 16 points 1 week ago

    Damn and does it work as an init too? xD.

    load more comments
    view more: next ›