LQX Lemmy
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · 1 year ago

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

message-square
9
link
fedilink
5

Thinking I could clean up my files in a SIGINT handler

sopuli.xyz

bleistift2@sopuli.xyz to Programmer Humor@programming.devEnglish · 1 year ago
message-square
9
link
fedilink
alert-triangle
You must log in or # to comment.
  • deadcream@sopuli.xyz
    link
    fedilink
    arrow-up
    0
    ·
    1 year ago

    That’s why you launch them through systemd.

    • ikidd@lemmy.world
      link
      fedilink
      English
      arrow-up
      1
      ·
      1 year ago

      But systemd is the devil and makes nothing better, right?

      Right?

      • DreamButt@lemmy.world
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        Really? I’ve never had issue with it

        • qaz@lemmy.world
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          It’s a joke about the criticism systemd gets

      • desktop_user [they/them] @lemmy.blahaj.zoneBanned
        link
        fedilink
        arrow-up
        0
        arrow-down
        1
        ·
        1 year ago

        openrc exists

        • introvertcatto@lemmy.blahaj.zoneBanned
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          Openrc is bloat, you should manually pair electrons

    • bleistift2@sopuli.xyzOP
      link
      fedilink
      English
      arrow-up
      0
      ·
      1 year ago

      The constant nagging by you systemd people worked. I’ve written a unit that does what I need it to do. That was more annoying than I think it needed to be, but well… my solution didn’t work at all.

      • deadcream@sopuli.xyz
        link
        fedilink
        arrow-up
        1
        ·
        1 year ago

        AFAIK kernel itself doesn’t send any signals to processes on shutdown/reboot, it just stops executing them. This is a job service manager (e.g. systemd) that terminates processes using SIGTERM before asking kernel to shutdown.

  • sunshine@lemmy.ml
    link
    fedilink
    arrow-up
    0
    arrow-down
    1
    ·
    1 year ago

    Interesting. Is this top answer accurate then?

    https://stackoverflow.com/questions/31731980/handling-a-linux-system-shutdown-operation-gracefully

Programmer Humor@programming.dev

programmer_humor@programming.dev

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 873 users / day
  • 3.7K users / week
  • 8.81K users / month
  • 18.2K users / 6 months
  • 1 local subscriber
  • 27.9K subscribers
  • 1.45K Posts
  • 38.6K Comments
  • Modlog
  • mods:
  • adr1an@programming.dev
  • Feyter@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.13
  • Modlog
  • Legal
  • Instances
  • Docs
  • Code
  • join-lemmy.org