You are viewing a single thread.
View all comments
0 points

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?

permalink
report
reply
1 point

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

permalink
report
parent
reply
2 points

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

permalink
report
parent
reply
1 point

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.

permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

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

Community stats

  • 3.8K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments