Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

Who needs an init system anyway

Name: Cudder !MhMRSATORI 2015-01-26 14:43

init=/bin/sh

Put everything you need to run automatically at startup in /etc/profile or one of the other autoexec files, and you won't have to deal with a mess of init scripts or the horrors of systemd. It's like AUTOEXEC.BAT for *nix, easy and simple. If you want a GUI just put startx in there...

Name: Anonymous 2015-01-26 15:00

Most init systems start some non mutually-dependent services on parallel to speed up the entire boot process, a feature your propose init system lacks.

OpenRC already does this without going "i'm lennart quality software".

Name: Anonymous 2015-01-26 15:11

How should logging/monitoring be handled? If everything is just disjoint programs started from a shell script how can you hook any kind of instrumentation in?
How to deal with orphaned processes?
How to deal with dependencies, i.e some service A requires networking, logging and service B to be started before hand?
Speaking of networking (or other high latency services), do you really wanna stall the entire boot process just because of these? Which brings up: How to deal with asynchronous/parallel startup? In particular with combination of above - parallel + dependencies.

If you consider these 'unnecessary bloat' I would question your use of a computer in the first place - computers are made to automate things and make our lives easier, why would you *not* wanna have fast, asynchronous, event based boot with automatic dependency handling?

Name: Anonymous 2015-01-26 15:12

#define _XOPEN_SOURCE 700
#include <signal.h>
#include <unistd.h>

int main()
{
sigset_t set;
int status;

if (getpid() != 1) return 1;

sigfillset(&set);
sigprocmask(SIG_BLOCK, &set, 0);

if (fork()) for (;;) wait(&status);

sigprocmask(SIG_UNBLOCK, &set, 0);

setsid();
setpgid(0, 0);
return execve("/etc/rc", (char *[]){ "rc", 0 }, (char *[]){ 0 });
}

Name: Anonymous 2015-01-26 15:13

Name: Anonymous 2015-01-26 15:42

tfw want to use a suckless init system but cant because 90% of the software in the repos depends on systemd

Name: Anonymous 2015-01-26 15:46

>>6
Install Alpine Linux

Name: Anonymous 2015-01-26 16:29

>>3
Services should be able to start up at any time, they'll simply have to sit and wait until their depenencies come up.

Name: Anonymous 2015-01-26 16:39

Alpine Linux is ... based on musl libc and busybox.

http://i.imgur.com/8NfOHwm.jpg

Name: Anonymous 2015-01-26 18:21

But musl libc is good.
http://www.etalabs.net/compare_libcs.html

And busybox is better than GNU utils too.
https://gist.github.com/pete/665971

Name: Anonymous 2015-01-26 18:24

>>6
Install Funtoo.

Name: Anonymous 2015-01-26 22:51

>>1
then it will be run whenever you start a login shell, you dumb fucking weeweeboo

Name: Anonymous 2015-01-26 23:06

This code's seriously shit though, look at this:

https://github.com/systemd/systemd/blob/master/src/shared/strv.h#L85-L86

(s) && *(s)

When is (s) ever going to be false? All this does is waste the programmer's time when they have to look up the definition for this silly macro when they see this:

https://github.com/systemd/systemd/blob/master/src/sleep/sleep.c#L44

Really, just write:
for (mode = modes; *mode != NULL; mode++) { ... }

Name: Anonymous 2015-01-26 23:06

>>12
Over a serial cable, because sshd doesn't start until you login either.

Name: Anonymous 2015-01-26 23:08

Name: Anonymous 2015-01-27 2:11

13
When iterating over an array of pointers which is ended by a null pointer - argv being an example.

Name: Anonymous 2015-01-27 3:57

>>15
I know. Plagiarizing his dog slave that he murdered and infected with aids. He could have at least honored him there.

Name: Anonymous 2015-01-27 4:37

>>14
sounds like systemd

Name: Anonymous 2015-01-27 4:39

So what's the deal with systemd?
Why's it so controversial and obviously hated yet at the same time popular among distributions?

Name: Anonymous 2015-01-27 4:55

oh just look at >>14, jerry seinfeld

Name: Anonymous 2015-01-27 5:08

. . . . . . . . . . . . . . . . . . . ,,_ . . . . . . . . ,-'`-,
. . . . . . . . . . . . . . . . . . . .\,, '``-.__.,.,./ .,., .\
. . . . . . . . . . . . . . . . . . . . .|,.-;`;` . . ,.,., .,.,.,`-, . . . . . . . . . . .
..,,,.,.,._ . . . . . . . . . . . . . . / :o;. . .;o; .['. . . . `'-.,. . . . . . . .
['. . . . . . '`'`'`'`'*-----,.,.,.,._\ . . . -;- . . . . '`-,._ . . . `'-., . . . . .
'``'*----,,,,,.,.,.,.,_. . . . . . . ..\,, . ,-,-,. . . . . ,.,. `'-, . . . .\,. . . .
. . . . . . . . . . . . . . ``'`'*----.,., .`'`-----'`'`'`` . . . . .`-. . . . \` . .
. . . . . . . . . . . . . . . . . . . . . .`'-. . . . . . . . . . . . . . . . . . .,| . .
. . . . . . . . . . . . . . . . . . . . . . . |;. . . . . . . . . . . . . . . . . ,|. . .

Name: Cudder !MhMRSATORI 2015-01-27 5:20

>>2
The shell has &, you know.
>>3
How should logging/monitoring be handled?
Pipe the output to a file if you want. It's not needed most of the time.
Speaking of networking (or other high latency services), do you really wanna stall the entire boot process just because of these? Which brings up: How to deal with asynchronous/parallel startup? In particular with combination of above - parallel + dependencies.
Use &, as mentioned above.

And I'd argue that if you find managing services so complex that you need an entire fucking bloated system to do it, you have too many services.

>>12,14
You don't even have to login. It boots directly to a shell. If you want SSH access then just put a line in that script to run the sshd. To all the "OMG BUT IT'S r00t!!111" whiners: I've been using DOS (and early Windows) for over a decade and that's exactly what it is, with full control full access no-DRM no-"security" bullshit.

>>13
!= NULL
FAIL

>>19
Poettering. He manages to somehow turn technical issues into retarded pseudo-SJW "muh feelings" bullshit. "Accept systemd or you're a *ist bully" seems to be his way of getting his shit into production.

Name: Anonymous 2015-01-27 5:22

>>22
Shalom, hymie!

Name: Anonymous 2015-01-27 7:30

!= NULL
FAIL
what the fuck are you talking about you whiny bitch that's right

Name: Anonymous 2015-01-27 7:34

>>22
You don't even have to login. It boots directly to a shell. If you want SSH access then just put a line in that script to run the sshd. To all the "OMG BUT IT'S r00t!!111" whiners: I've been using DOS (and early Windows) for over a decade and that's exactly what it is, with full control full access no-DRM no-"security" bullshit.

haha, now you're rambling about some more bullshit that's never going to happen and never going to be fulfilled because you'd rather jerk off to cartoon characters than do anything constructive.

started off with a simple fix that had flaws, turned it into some elaborate set of fixes that's never gonna fuckin happen.

cudder's all talk and no action.

Name: Anonymous 2015-01-27 7:58

haha, now you're rambling about some more bullshit that's never going to happen and never going to be fulfilled because you'd rather jerk off to kids than do anything constructive.

started off with a simple fix that had flaws, turned it into some elaborate facial reconstruction surgeries that's never gonna fuckin happen.

Michael Jackson's all talk and no action.

Name: Anonymous 2015-01-27 8:09

>>26
I love when people edit other posts!

Name: Anonymous 2015-01-27 10:27

>>27
Stop this voyeurism and start editing each other posts.

>>22
Enjoy your Win95 30 minute uptime.

>>8
Of course! Worse is always better.

Name: Anonymous 2015-01-27 11:50

>>25
cudder doesn't jerk off to cartoon characters, where did you pull that from

Name: Anonymous 2015-01-27 12:20

>>8
And where is this program logic supposed to be located?
Every program ad hocs implement it themselves?
A common library? Aka part of the init system? Aka not just /bin/sh anymore? Hm...

Name: Anonymous 2015-01-27 14:24

Wow, Cudder uses windows 98.

Name: Cudder !MhMRSATORI 2015-01-27 16:44

>>24
for (mode = modes; *mode; mode++) { ... }

>>25
"never going to happen"? That's what my Linux system has been setup as for the past few years.

>>30
You just figure out what they need and put the line in the right place in the init shellscript. Nothing fancy or complicated about it. Even an idiot would (should) know that you want ssh to run after the network is up.

>>31
And your point is?

Name: sage 2015-01-27 18:12

>>15
Three star programming! That is VIP quality!

Name: Anonymous 2015-01-27 19:48

Cudder is all talk and no action.

Name: Anonymous 2015-01-27 19:55

Smoke MARIJUANA everyday

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List