A simple pure-Go Linux init system.
Nevar pievienot vairāk kā 25 tēmas Tēmai ir jāsākas ar burtu vai ciparu, tā var saturēt domu zīmes ('-') un var būt līdz 35 simboliem gara.
Dashie der otter 49acf3294d
Add rsyslogd service
pirms 2 gadiem
conf Add rsyslogd service pirms 2 gadiem
conftest Add rsyslogd service pirms 2 gadiem
lutractl Ignore targets in lutractl status command pirms 2 gadiem
lutrainit Move the fix of rights for socket and fix his exec pirms 2 gadiem
shared/ipc Ignore targets in lutractl status command pirms 2 gadiem
.dockerignore Add sample LXC and docker configs pirms 2 gadiem
.drone.yml Add drone config pirms 2 gadiem
.gitignore Todo: nothing pirms 2 gadiem
Dockerfile Add sample LXC and docker configs pirms 2 gadiem
LICENSE License update pirms 2 gadiem
MAIN_CONFIG.md Update of configurations and documentations pirms 2 gadiem
Makefile It magically works pirms 2 gadiem
README.md Make markdown linter happy pirms 2 gadiem
SERVICES.md Remove some unused older references to Needs and Provides pirms 2 gadiem
common.mk Split makefiles pirms 2 gadiem
lxc-config Add sample LXC and docker configs pirms 2 gadiem



Main repository at https://dev.sigpipe.me/dashie/lutrainit

lutrainit is an init system for Linux written in Go.

lutrainit will do the following:

  1. Set the hostname
  2. Remount the root filesystem[1]
  3. Mount all other non-network filesystems and activate swap partitions
  4. Start processes with config files in /etc/lutrainit/lutra.d/ after their dependencies (“Requires”) are started. See conf/ for a samples config.
  5. Start some TTY or anything other user-specified.
  6. Kill running processes, unmount filesystems, and poweroff the system once that last login session ends.

(The way step 4 is handled isn’t very elegant and will likely fail if you have too many slow startup processes.)

You can also create a file /etc/lutrainit/lutra.conf for some basic configuration.

If there are any lines of the form autologin: username it will automatically log in as that username. (If there’s multiple autologin directives, it will create the appropriate number of ttys.) If any line contains persist: true, then when a tty exits, it’ll respawn the tty instead of powering down the system once all the ttys are gone.

See the conf/ folder for what you can put in /etc/lutrainit/ including services files in /etc/lutrainit/lutra.d/.


A tool exists and communicate with the init daemon using RPC on socket /run/ottersock, it can then show init version, statistics about goroutines, memory, etc.


sudo cp lutrainit/lutrainit /sbin
sudo cp lutractl/lutractl /sbin

then add init=/sbin/lutrainit to your grub configuration. (Or alternatively, make /sbin/init a symlink to lutrainit.)

[1] This shouldn’t be required, since mount -a should take care of it in step 3 according to mount(8), but as far as I can tell it doesn’t.