watchman/sinit -- init system

Forum rules
General talk about software - if the program is not in the repos, please links to the developer's page or github.
User avatar
Alad
should take a shower
Posts: 447
Joined: Wed May 21, 2014 12:52 am

watchman/sinit -- init system

Unread post by Alad » Mon Jul 21, 2014 12:31 am

(feel free to move this to /usr/bin or wherever this is best suited)

fbt's watchman with sinit and spark-rc:
2014-07-21-005326_1024x768_scrot.png
Stuff you need:

http://tools.suckless.org/sinit
https://github.com/fbt/spark-rc
https://github.com/fbt/watchman
https://github.com/fbt/watchman-services

On Arch I also needed sysvinit-tools-adds (for killall5). Both this package and the others are available from the AUR.

Configuration:

sinit: config.h, change rcinitcmd (assumes spark-rc is in /bin)

Code: Select all

static char *const rcinitcmd[] = { "/bin/rc", NULL };
static char *const rcrebootcmd[] = { "/bin/rc", "reboot", NULL };
static char *const rcpoweroffcmd[] = { "/bin/rc", "poweroff", NULL };
Install sinit with make (install), then watchman. Add the init scripts to /etc/watchman/init.d (path is adjustable in watchman config.mk), and modify /etc/rc.conf. Finally append init=/bin/sinit (or /usr/local/bin/sinit) to the kernel command line.

Haven't noticed major problems so far, except I messed up GRUB (and had to manually add " rw "), and some unexpected behaviour with reboots.
It's funny how we used to be able to do real stuff with rudimentary computers, but now we can't. -- ratcheer

User avatar
fbt
Saltimbocca-Roller
Posts: 10
Joined: Mon Jul 07, 2014 9:36 pm
Location: Moscow
Contact:

Re: watchman/sinit -- init system

Unread post by fbt » Mon Jul 21, 2014 1:15 am

Dropping by to show off a few things.

Arch with much the same setup on my work PC:
scn.png
If you're observant enough, you can probably tell that I don't have e?udev.
Yep, that's a *dev-less system, not even mdev. Turned out to be easy enough
to substitute those for a few simple scripts :)

Also, that's not a minimal system for the sake of being minimal. That's my
work desktop.

I'll write a proper guide on how to fbtize your arch at some point.
Would probably need a name for my arch spin huh.

User avatar
fbt
Saltimbocca-Roller
Posts: 10
Joined: Mon Jul 07, 2014 9:36 pm
Location: Moscow
Contact:

Re: watchman/sinit -- init system

Unread post by fbt » Mon Jul 21, 2014 1:49 am

Also watchman on FreeBSD:
06abc880f8a7d41ec3a1df7425fb63cb177ade0e.png

User avatar
fbt
Saltimbocca-Roller
Posts: 10
Joined: Mon Jul 07, 2014 9:36 pm
Location: Moscow
Contact:

Re: watchman/sinit -- init system

Unread post by fbt » Mon Jul 21, 2014 8:28 am

There is a guide now.

User avatar
fbt
Saltimbocca-Roller
Posts: 10
Joined: Mon Jul 07, 2014 9:36 pm
Location: Moscow
Contact:

Re: watchman/sinit -- init system

Unread post by fbt » Fri Jul 25, 2014 6:23 am

And here's a very minimal install:
8b101ce0b9a4ba4de3579ff297fc82d95fdb81ed.png
Show it to people who claim that Arch is bloated :)

Post Reply