The officially official Devuan Forum!

You are not logged in.

#1 2025-02-07 12:58:51

recklessswing
Member
From: Türkiye
Registered: 2020-12-18
Posts: 125  

Why sysvinit can't create init scripts by itself?

It seems easy enough. For example I created a tailscaled sysvinit startup script. I made it with chatgpt. It worked. I checked the code, it seems very easy actually. Why doesn't sysvinit doesn't create those things automatically? We don't even need chatgpt. Just pull in the given program's paths and various data, and put them in together. I would do that with gawk probably.

Offline

#2 2025-03-22 19:02:58

lynch9
Member
Registered: 2024-07-17
Posts: 21  

Re: Why sysvinit can't create init scripts by itself?

Can't speak for the developers, but I would imagine that the reason sysvinit doesn’t auto-generate init scripts is simple: it's not as easy as you think. Every service has its own unique needs – paths, variables, dependencies, permissions. If sysvinit tried to auto-generate scripts, it’d end up missing some of that and make assumptions that just don’t fit all cases.

Imagine this: A service might need special user permissions, or it could rely on other services to start first. Some services need specific arguments. If sysvinit tried to do that automatically, it’d probably screw up.

That’s why you write your own init scripts. It gives you control, which is what Linux is all about. Everyone’s system is different, and you should be the one deciding how things work, not the system. The whole idea of Unix (and by extension, sysvinit) is to keep things simple, modular, and flexible. Each program or service is designed to do one thing well, and the system as a whole allows users to assemble these components however they see fit.

So, yeah, auto-generating scripts sounds nice in theory, but in practice, it’d be a pain in the ass. It’s better to leave that part to the user, I think.


Hey, it's lynchian9.
Feel free to reach out via email.

Offline

#3 2025-03-24 12:10:41

stopAI
Member
Registered: 2023-04-04
Posts: 215  

Re: Why sysvinit can't create init scripts by itself?

Why doesn't sysvinit doesn't create those things automatically?

Because sysvinit follows a design principle which states that designs and/or systems should be as simple as possible.

Offline

#4 2025-03-24 14:50:29

RedGreen925
Member
Registered: 2024-12-07
Posts: 95  

Re: Why sysvinit can't create init scripts by itself?

Because sysvinit follows a design principle which states that designs and/or systems should be as simple as possible.

Yes the *nix method of do one thing and do it well, a concept seemingly lost to many of today's programmers. And their let's copy ever GD bad idea out there chasing the new shinney. I am shocked the fools have not just dumped that AI garbage into everything yet like they usually do with such trash.

Offline

#5 2025-03-24 15:03:21

stopAI
Member
Registered: 2023-04-04
Posts: 215  

Re: Why sysvinit can't create init scripts by itself?

I am shocked the fools have not just dumped that AI garbage into everything yet like they usually do with such trash.

I agree. I think they will do so when the time comes.

Offline

Board footer