mirror of
https://github.com/troglobit/finit.git
synced 2026-10-01 13:33:09 +07:00
Restructure start by calling the plugin loader earlier. This makes it
possible to run hooks even earlier. This also adds a new hook:
HOOK_ROOTFS_UP which runs as soon as the system root (/) is available.
Another very notable change is the slow refactor of helpers.c into a finit
helper library called libite.so (-lite). This is a light-weight
Also, lots of misc. fixes all over the place. Signal handling still really
needs to be looked into once more!
Makefile:
Add dependency handling for parallell build
Add libite library
ChangeLog:
Update with new 1.4 release. There is a lot of fixes!
libite/:
Collection of utility functions and C library extensions for
finit & its plugins
reboot.c:
New reboot tool. Simply sends SIGINT to PID 1
finit.h:
Cleanup old LISTEN_INITCTL define, code is in an optional plugin now
finit.c:
Let mdev/udev run *after* cls()
Add useful debug statement for /proc/cmdline
Earlier plugin load => new early hook point
Show OK/FAIL for total plugin load, not for each plugin => speedup
helpers.h:
Rename syslog macros to prevent common name clashes (DEBUG/ERROR)
Add __FILE__ to _e(), _d() and _pe() macros
helpers.c:
In ifconfig() the addr and mask arguments are now optional
The copyfile() has been moved to libite.so
Temporarily remove const directive from some functions to build
Use DFLSIG() macro in run_getty() to simplify code
plugin.h:
Add new HOOK_ROOTFS_UP hook
plugin.c:
Fix init_plugins() to actually register the plugin's I/O fd
Skip verbose listing of all plugins in plugin_load_all()
svc.c:
svc_start(): Dito
plugins/Makefile:
Inherit CFLAGS and LDFLAGS, but make sure to filter out -rdynamic
from LDFLAGS, it's used by the daemon, only
plugins/initctl.c:
New includes after helpers.h refactor
Signed-off-by: Joachim Nilsson <troglobit@gmail.com>
91 lines
4.0 KiB
Plaintext
91 lines
4.0 KiB
Plaintext
1.4 (20121002)
|
|
- Fix I/O plugin watcher and load plugins earlier for a new hook
|
|
- Start refactoring helpers.c into a libite.so (-lite). This
|
|
means other user space applications/daemons can make use of
|
|
the neat toolbox available in finit
|
|
- Use short-form -s/-w -u to work with BusyBox hwclock as well
|
|
- Use RTLD_GLOBAL flag to tell dynamic loader to load dependent
|
|
.so files as well. Lets other plugins use global symbols.
|
|
- Greatly simplify svc hook for external plugins and cleanup
|
|
the plugin API.
|
|
- And more... see the GIT log for more details.
|
|
|
|
1.3 (20120928)
|
|
- Cleanup public plugin API a bit and add new pid/pidfile funcs
|
|
- Add plugin hook to end of service startup
|
|
- Remove finit.h from svc.h, plugins should not need this.
|
|
- Move utility macros etc. to helpers.h
|
|
- Make finit.h daemon internal, only
|
|
- Move defines of FIFO, conf and rcS.d to Makefile => correct paths
|
|
- Add support for installing required headers in system include dir
|
|
- Better support for distributions and packagers with install-exec,
|
|
install-data, and install-dev targets in Makefile. Useful if you
|
|
want to call targets with different $DESTDIR!
|
|
- Makefile fixes for installation, paths encoded wrong
|
|
- Strip binaries + .so files, support for $(CROSS) toolchain strip
|
|
- Default install is now to /sbin/finit and /usr/
|
|
- Note change in $PLUGIN_DIR environemnt variable to $plugindir
|
|
|
|
1.2 (20120927)
|
|
- Fix installation paths encoded in finit binary
|
|
- Update README with section on building and enviroment variables
|
|
|
|
1.1 (20120927)
|
|
- Build fixes for ARM eabi/uClibc
|
|
- Rename signal.[ch]-->sig.[ch] to avoid name clash w/ system headers
|
|
|
|
1.0 (20120926)
|
|
- New plugin based system for all odd extensions
|
|
- New service monitor that restarts services if they die
|
|
- New maintainer at GitHub http://github.com/troglobit/finit
|
|
- Add standard LICENSE and AUTHORS files
|
|
- New focus: embedded systems and small headless servers
|
|
|
|
0.6 (20100614)
|
|
- don't start consolekit manually, dbus starts it (rtp)
|
|
- unmount all filesystems before rebooting
|
|
- disable USE_VAR_RUN_RESOLVCONF for Mandriva
|
|
- unset terminal type in Mandriva before running X
|
|
- remove extra sleep in finit-alt before calling services.sh (caio)
|
|
|
|
0.5 (20080821)
|
|
- add option to start dbus and consolekit before the X server
|
|
- finit-alt listens to /dev/initctl to work with reboot(8) (smurfy)
|
|
- write runlevel to utmp, needed by Printerdrake (Pascal Terjan)
|
|
- fix ownership of /var/run/utmp (reported by Pascal Terjan)
|
|
- remove obsolete code to load AGP drivers
|
|
- conditional build of /etc/resolveconf/run support
|
|
- add support to /var/run/resolvconf in Mandriva (blino)
|
|
|
|
O.4 (20080516)
|
|
- default username for finit-alt configurable in Makefile
|
|
- create loopback device node in finit-alt (for squashfs)
|
|
- add option to use built-in run-parts instead of /bin/run-parts
|
|
- ignore signal instead of setting to an empty handler (Metalshark)
|
|
- handle pam_console permissions in finit-alt for Mandriva
|
|
- add services.sh example and nash-hotplug patch for Mandriva
|
|
- mount /proc/bus/usb in Mandriva
|
|
- add runtime debug to finit-alt if finit_debug parameter is specified
|
|
- read configuration from /etc/finit.conf
|
|
- run getty with openvt on the virtual terminal
|
|
|
|
0.3 (20080223)
|
|
- Change poweroff method to reboot(RB_POWER_OFF) (Metalshark)
|
|
- Remove duplicate unionctl() reimplementation error
|
|
- Fix string termination in path creation
|
|
- Mount /var/lock and /var/run as tmpfs
|
|
|
|
0.2 (20080219)
|
|
- replace system("touch") with touch() in finit-mod (Metalshark)
|
|
- disable NO_HCTOSYS by default to match stock Eeepc kernel
|
|
- drop system("rm -f") to clean /tmp, its a fresh mounted tmpfs
|
|
- write ACPI sleep state to /sys/power/state instead of
|
|
/proc/acpi/sleep (Metalshark)
|
|
- use direct calls to set loopback instead of system("ifconfig")
|
|
- replace system("cat") and system("dd") with C implementation
|
|
- moved finit-mod and finit-alt helpers to helpers.c
|
|
- replace system("echo;cat") to draw shutdown splash with C calls
|
|
|
|
0.1 (20080214)
|
|
- initial release
|