-
Notifications
You must be signed in to change notification settings - Fork 0
Init system written in mk
License
Andy753421/mkinit
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
mkinit is a tiny init daemon that relies on mk for determining the order init services need to be executed. WARNING: This code is not very well tested, you should probably run `mkinit -t' a few times as root before actually trying using init=/sbin/mkinit. Init scripts ------------ Init scripts take the form of mk rules contained in /etc/init.mk. Services are started by calling the `<service>-start' rule and stopped by calling `<service>-stop'. Services should use `:Pservice -[ud]:' to determine if the script needs to be run and call `service -[UD]' afterwards. For simple services consisting of a single start and stop command with no dependencies other than `boot', the default start-stop rules can be used by setting `<service>-start_cmd' and `<service>-stop_cmd'. Dependencies are handled by adding `<dependency>-start' to the rules list of dependencies. When stopping a service, `<service>-stop' should be added to the list of dependencies for the dependency. Files ----- COPYING - Licencing terms (MIT) README - This file mkfile - For [un]installing mkinit init.mk - Example database of init scripts src: mkinit - The actual init program it runs main loop and calls mk on init.mk whenever services need to be started and stopped. mkinit.rc - Rc variant of mkinit, unforuntly I can't get the IO redirects working, it also leave zombies laying around.. initctld.c - Reads /dev/initctl (Sysvinit compatability for halt,reboot,etc) service - Set or query the state of a service respawn - Used to respawn gettys and such # tw=80
About
Init system written in mk
Resources
License
Stars
Watchers
Forks
Releases
No releases published
Packages 0
No packages published