252
submitted 1 day ago* (last edited 1 day ago) by bleistift2@sopuli.xyz to c/programmer_humor@programming.dev
you are viewing a single comment's thread
view the rest of the comments
[-] RoyaltyInTraining@lemmy.world 36 points 1 day ago

Weird that it doesn't work. The usual way to run scripts on startup is through systemd units though. That has the added benefits of automatically logging all output and letting you control it through commands like systemctl enable <unit name>. It's a really neat system, and I highly recommend learning it if you see yourself doing this kind of automation more often.

[-] ulterno@programming.dev 1 points 13 hours ago

I do that when I want it running with root privileges.
In case of user privileges though, the autostart is a better idea.

[-] dbx12@programming.dev 2 points 9 hours ago

You was m can use user units too if you want them scoped to your user.

load more comments (5 replies)
this post was submitted on 24 Dec 2024
252 points (97.0% liked)

Programmer Humor

19821 readers
831 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