378
you are viewing a single comment's thread
view the rest of the comments
[-] Maddier1993@programming.dev 1 points 1 month ago

I thought someone here had mentioned that the environment and user executing the script at startup and you running the script might have differences. The reason it would have worked with systemd might be that the environment was loaded correctly?

[-] bleistift2@sopuli.xyz 1 points 1 month ago

Why should the environment make a difference when it comes to receiving the SIGINT when the process gets killed?

[-] KairuByte@lemmy.dbzer0.com 2 points 1 month ago

They responded to the wrong post. They’re likely thinking of the auto start post.

[-] Maddier1993@programming.dev 1 points 1 month ago

Oops yeah you're right. Sorry OP. There's nothing better than using a database that flushes to disk often enough that missing a small chunk of data due to interruptions should be fine. Probably some kind of memory mapped IO on top of eager writing filesystem should do a good enough job.

this post was submitted on 25 Dec 2024
378 points (99.2% liked)

Programmer Humor

20033 readers
618 users here now

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

founded 2 years ago
MODERATORS