mirror of
https://github.com/sheumann/hush.git
synced 2024-09-12 15:54:56 +00:00
Here's a pretty crude patch to reload /etc/inittab when init receives a SIGHUP. The mailing list archives weren't entirely clear on whether or not it should already happen, but didn't appear to be. The patch: * Adds a new function, reload_signal() which just calls parse_inittab() and run_actions(RESPAWN) * Before entering the while (1) loop set up SIGHUP to call reload_signal() * Modify new_init_action to skip the action if the same command already exists on the same terminal This last bit means that changing already running entries is a bit hairy as you can end up with, for example, two shells running on the same virtual console. However, for solely adding/removing entries this patch seems to work quite well. |
||
---|---|---|
.. | ||
Config.in | ||
halt.c | ||
init_shared.c | ||
init_shared.h | ||
init.c | ||
Makefile | ||
Makefile.in | ||
mesg.c | ||
minit.c | ||
msvc.c | ||
pidfilehack.c | ||
poweroff.c | ||
reboot.c | ||
start_stop_daemon.c |