cf55352b97Fixed various typos and control codes in manual pages. Patch provided by Bjarni Ingi Gislason.
Jesse Smith
2019-03-03 17:32:28 -0400
80e83960daUpdated the fstab-decode manual page to explain what the utility does.
Jesse Smith
2019-02-21 15:09:48 -0400
25191ff9aaMerge branch '2.94'
Jesse Smith
2019-02-19 19:22:15 -0400
aa3b8121e1Fixed typo in init.8 manual page.
Jesse Smith
2019-02-17 21:51:13 -0400
09f8dcc90eUpdated wall.c to make it easier to adjust buffer sizes without causing overflow or off-by-one errors.
Jesse Smith
2019-01-27 16:04:13 -0400
483dc777d2Changed the way the "when" variable is used internally in shutdown.c. It starts as a NULL pointer, then might get set as a pointer to optarg, then it might get set to point to an argv parameter, then it might have a string value copied into it, over-writing the original data. We should not risk over-writing internal variables which might get used for something else (it's rude and security risk). Set up "when" as its own buffer that has data from optargs and/or argv copied into it.
Jesse Smith
2019-01-27 15:55:08 -0400
43b5c64126Use defined constant for field length for easier updating/patching in sulogin.c
Jesse Smith
2019-01-13 12:24:12 -0400
5af4ee50a8Minor update to defines and Makefile to avoid compile warnings when building logsave.
Jesse Smith
2019-01-01 17:06:07 -0400
3f2b4a5704Added logsave.c and logsave.8 manual page from e2fsprogs to make sure logsave is available to initscripts.
Jesse Smith
2018-12-31 16:31:34 -0400
5d955d55c8Increased the size of the kernel command line buffer in bootlogd from 256 characters to 4096. This size is defined in KERNEL_COMMAND_LENGTH for easy modification downstream.
Jesse Smith
2018-12-29 14:46:10 -0400
9e8553cacbUpdated copyright in init and removed unused Version variable from killall5.c
Jesse Smith
2018-12-27 15:31:14 -0400
be8d584161Added some defines and compile-time conditionals to make some components of sysvinit compile on FreeBSD.
Jesse Smith
2018-12-09 19:32:04 -0400
5dc965ba10Removed references to malloc.h Allocating and freeing memory is now handled by stdlib.h
Jesse Smith
2018-12-09 17:55:52 -0400
64ebef64c8Updated changelog to reflect new version number.
Jesse Smith
2018-11-24 12:49:14 -0400
cb0a849e87Added patch to re-enable the omit flag (-o) in pidof.
Jesse Smith
2018-11-24 12:37:25 -0400
f0e93128bcWhen the halt command is called with the -p flag (or as poweroff) the command now passes the "-h -P" flags to shutdown. This in turn sets the INIT_HALT environment variable to POWEROFF. Assuming this value is checked by initscripts during the shutting down procedure, it should cause the system to be powered off. If halt is called without -p then the value of INIT_HALT is not set and the default action (often set in /etc/defaut/halt) is taken.
Jesse Smith
2018-11-23 22:11:42 -0400
c03e2fac2bAdded fix to pidof which re-enabled the omit (-o) flag. this was broken when formatting was added in the 2.92 release. Closes Debian bug #914494.
Jesse Smith
2018-11-23 18:00:23 -0400
c679a49aacAdded patch from Samuel Thibault to make project compile on Hurd branch of Debian.
Jesse Smith
2018-11-19 18:12:13 -0400
5b03e0faf0Updated shutdown manual page to try to clarify which components of the shutdown process vs shutdown program we are referring to.
Jesse Smith
2018-11-15 13:28:35 -0400
f064d8f4b9Added reference to readbootlog to the bootlogd manual page. This should allow Debian bug #725123 to be closed.
Jesse Smith
2018-11-12 20:58:44 -0400
5d3815b0ffAdded manual page and options for readbootlog.
Jesse Smith
2018-11-12 20:53:52 -0400
7c1a8d932aAdded new tool (readbootlog) which will read the /var/log/boot file produced by bootlogd. The output is displayed cleaned up so there are no control characters. This avoids the need to use sed or related tools to try to clean up the contents of the log.
Jesse Smith
2018-11-12 20:29:28 -0400
aa6873b85bRemoved typos from pidof manual page and killall5 page. Closes Debian bugs #815839, #905245 and #890478
Jesse Smith
2018-11-10 21:27:11 -0400
2ece2c0364Updated src/Makefile to confirm we build all the necessary software prior to trying to install it.
Jesse Smith
2018-11-07 17:24:55 -0400
848ee05104Updated init manual page to include GRUB in boot loader comment as LILO is rarely used outside of the Slackware family these days.
Jesse Smith
2018-11-05 23:15:11 -0400
2fd897ff3aFixed typo in changelog.
Jesse Smith
2018-11-01 22:06:14 -0300
c45219c64fAdded -q and -Q flags to shutdown command to make the "system is going down" message appear less often. The -q flag causes messages to only appear at the 10 minute, 5 minute and x-hour intervals. The -Q flag maintains complete silence up until the final "now" warning.
Jesse Smith
2018-11-01 17:21:47 -0300
44fce86ddeAdded -l flag to "last" command. When used it allows "last" to display usernames longer than 8 characters long.
Jesse Smith
2018-10-30 21:46:04 -0300
be8e6b9e1cshutdown command was setting environment variable INIT_HALT to "POWERDOWN", this should have been "POWERDOWN" as specified in the manual page. Fixed code to match manual page and init scripts.
Jesse Smith
2018-10-28 16:19:26 -0300
a17f736a42Applied patch from Regid Ichira to clarify shutdown command line options. Updated manual page for shutdown. Closes Debian bug #630661.
Jesse Smith
2018-10-27 20:37:47 -0300
1b659c8ebeApplied patch from Daniel Povey which should allow killall5/pidof to avoid locking up if it encounters stopped or zombie processes due to broken NFS mount points. This should allow Debian bug #719273 to be closed.
Jesse Smith
2018-10-27 20:26:15 -0300
b4f8539153Addressed man page documentation to warn the halt -i flag may not properly shut down a network interface if it has no valid IP address.
Jesse Smith
2018-10-22 22:19:49 -0300
ed85143837Removed super loud PC speaker beep during shutdown. Closes Debian bug #614893. Patch from Andreas Fackler.
Jesse Smith
2018-10-22 22:03:09 -0300
d27e34754aUnified shutdown and init to use 3 second wait between SIGTERM and SIGKILL. Defined this value in init.h (WAIT_BETWEEN_SIGNALS) for easy modification. Updated documentation to address Debian bug #375274.
Jesse Smith
2018-10-22 21:44:39 -0300
7b1d470949Added check for kernel parameter init.autocon=1. If this exists, then init will try to open its own console. If not, then any console= parameters will be ignored. This avoids conflicts with native kernel created consoles.
Jesse Smith
2018-09-29 17:12:12 -0300
c29655a5c8Updated changelog with information on pidof's new -q flag. Fixed Makefile to make sure it does proper clean before making tarball. And properly creates signed tarball afterwards.
Jesse Smith
2018-09-08 23:29:02 -0300
f1ca96e1c1Added patch from Walter Harms which allows pidof to run without displaying output. In this mode pidof simply returns true or false without displaying PID values.
Jesse Smith
2018-09-08 17:19:21 -0300
eda1f0d6baFixed typo in Makefile
Jesse Smith
2018-09-07 21:46:12 -0300
96b7285309Fixed Makefile so it cleans up object files before creating tarball.
Jesse Smith
2018-09-07 21:42:47 -0300
6e8323e9fbThe init process now writes the current runlevel to /var/run/runlevel. This information can be read by the "runlevel" command as well as "halt" and "reboot". Having the information logged in /var/run/runlevel as well as the utmp file means systems without utmp (like those running the musl C library) can still check the current runlevel. This is useful when running halt/reboot as these programs want to check the runlevel.
Jesse Smith
2018-07-07 20:19:03 -0300
6b26692584Added new runlevel log code which saves (and reads) the current runlevel from /var/run/runlevel. Added test code to runlevel.c to confirm it works.
Jesse Smith
2018-07-07 18:49:04 -0300
aa80ddcc4bUpdated init manual page to make "--version" flag behaviour more clear.
Jesse Smith
2018-07-01 18:51:31 -0300
7656f9d5f9Version information is now fetched and defined by the Makefile. No more need to update the version manually in the init.c source.
Jesse Smith
2018-07-01 18:44:57 -0300
8cc9f34ca4Merge branch '2.91' of git.sv.gnu.org:/srv/git/sysvinit into 2.91
Jesse Smith
2018-06-22 17:05:35 -0300
4438de4e50Added --version flag to init and updated manual page.
Jesse Smith
2018-06-22 17:04:47 -0300
2a61e2b029Adjusted order of compile flags to make it possible to select optimization level by setting CFLAGS at compile file.
Jesse Smith
2018-06-21 19:34:25 -0300
5f6d86d216Adjusted order of compile flags to make it possible to select optimization level by setting CFLAGS at compile file.
Jesse Smith
2018-06-21 19:34:25 -0300
3a6ebb3c07Fixed tar flag and typo in Makefile to make sure archive is properly compressed.
Jesse Smith
2018-06-18 20:26:58 -0300
40f40a4166Removed DATE define from init.c, not needed anymore. Updated Changelog in prep for release.
Jesse Smith
2018-06-18 19:35:53 -0300
c229965b62Fixed typo. Corrected by Radostin Stoyanov.
Jesse Smith
2018-06-11 13:06:04 -0300
2d6d2bc0d3Updated toplevel Makefile to avoid created unnecessary temporary directories when they are not wanted/required.
Jesse Smith
2018-06-03 20:14:01 -0300
108b31e284Switched from using -fstack-protector to -fstack-protector-strong compile flag. Tested with both GCC and Clang.
Jesse Smith
2018-06-02 16:50:35 -0300
56e1041034Updated Makefile and version information.
Jesse Smith
2018-05-20 17:21:18 -0300
4732d28994Reverted changes to Makefile which caused tarball to be created with incorrect name and parent folder version.
Jesse Smith
2018-05-20 17:10:54 -0300
75d85cc876Fixed typo in Changelog.
Jesse Smith
2018-05-20 16:19:26 -0300
bed25016b1Updated sulogin.c to pull in crypt.h as it is a new, undocumented dependency on Fedora 28. Confirmed we can still build on other/older platforms.
Jesse Smith
2018-05-09 17:55:35 -0300
3f400a01a3Updated install documentation, fixed typo.
Jesse Smith
2018-05-05 17:11:29 -0300
dbf996d888Fixed some problems in the Makefile which caused it to grab wrong version/user information for upload.
Jesse Smith
2018-05-05 14:51:22 -0300
670d691e1aUpdated Makefile to use git to find version. Remove unnecessary username information checking.
Jesse Smith
2018-05-05 14:33:54 -0300
828c2704a1Removed old LSM file. Added .gitignore files to avoid git tracking object files. Removed old start-stop-daemon from contrib directory.
Jesse Smith
2018-05-04 22:08:38 -0300
e0cfd39728Added "Fall through" comments to some switch statements where multiple approaches are tried in order to prevent warnings from GCC 7 (and newer).
Jesse Smith
2018-05-04 14:51:40 -0300
cfb39b573fUpdated init.c to remove some old notes and answer questions that were flagged in comments or FIXME labels.
Jesse Smith
2018-04-23 00:09:49 -0300
272f112c98Added new signal handler for SIGUSR2. When init receives SIGUSR2 it closes (and leaves closed) the named pipe /run/initctl. This can be used to make sure init does not have any files open. However, it also means we cannot switch run levels or bring down the system. The pipe can be re-opened by sending init the SIGUSR1 signal.
Jesse Smith
2018-04-17 19:44:50 -0300
f09da9cb55Add check to make sure /run/initctl is open before we try to close it when receiving SIGUSR1. Avoids crashing upon receiving signal.
Jesse Smith
2018-04-15 14:09:33 -0300
aee28b3292Updated init page to reference the initctl manual page instead of telling people to read the source code to learn how to use the /run/initctl named pipe. Updated Makefile to install the initctl.5 manual page.
Jesse Smith
2018-04-14 19:19:18 -0300
01ca5252e8Added new manual page for the initctl named pipe. This provides information on how to send messages to the init command.
Jesse Smith
2018-04-14 19:16:12 -0300
266671c968Added documentation page for initctl (/run/initctl).
Jesse Smith
2018-04-08 22:03:07 -0300
a4508479f5Updated shutdown to check if time has lapsed when we did not notice. For example if the computer was in sleep mode pending a shutdown. The shutdown command now notices time has past and adjusts its countdown clock to compensate. Accurate to the nearest minute. Closes Savannah bug #36279
Jesse Smith
2018-04-04 23:12:25 -0300
d9b6475d85Removed unneeded "count" variable in utmpdump.c.
Jesse Smith
2018-03-30 22:15:04 -0300
e02e001f7aUpdated changelog in preparation for release.
Jesse Smith
2018-03-27 20:47:49 -0300
a436cdc993Merge branch 'mountpoint'
Jesse Smith
2018-03-27 20:33:52 -0300
4f7a210940Merge branch 'speedup'
Jesse Smith
2018-03-27 20:33:34 -0300
21a982f36aFix merge issue.
Jesse Smith
2018-03-27 20:33:16 -0300
c0f5983562Merge branch 'beta'
Jesse Smith
2018-03-27 20:31:48 -0300
9bbabbfda4Updated manual page to include -p flag description.
Jesse Smith
2018-03-08 12:32:50 -0400
8c8172349eUpdated mountpoint to search for circular mount points when using the -p parameter. This works around mountpoint not recognizing circular mounts where /a/b/c/d and /a/b are the same location (ie the same device and same inode). Closes Savannah bug #37114.
Jesse Smith
2018-03-07 16:25:53 -0400
a8ef2a24c5Updated changelog.
Jesse Smith
2018-03-07 13:59:51 -0400
a3f38afc34Updated documentation and install instructions. Refreshed copyright notice.
Jesse Smith
2018-02-27 17:28:10 -0400
d6f9d19745Updated Makefile to sign and upload packages created from the git repository when we use "make upload".
Jesse Smith
2018-02-23 18:08:34 -0400
bdd2bc12e3Updated documentation to be more relevant to modern (2018) systems. Updated copyright notice. Fixed start-stop-daemon.c so that it will compile. Updated install instructions. Removed references to "obsolete" directory which, fittingly, no longer exists.
Jesse Smith
2018-02-23 17:34:30 -0400
2e1f87635eRemoved extra sleep() calls from shutting down process since we use sync() anyway to pause and make sure data is written out to disk.
Jesse Smith
2018-02-22 21:07:51 -0400
2b651b469eFixed Clang compiler warning when calling sprintf() with variable number of data parameters.
Jesse Smith
2018-02-21 18:05:58 -0400
e1ab5f1528Updated Makefile to build tarball from git repo instead of old Subversion repo. The migration broke creating the staging area for source files.
Jesse Smith
2018-02-21 17:36:04 -0400
8c00f756ecImported changelog from Jesse's source repo.
Jesse Smith
2018-02-20 19:42:51 -0400
c6f29e96c0Cleared up compiler warnings from unused variables and findtty() function in bootlogd.c
Jesse Smith
2018-02-20 19:40:14 -0400
87032d1937Moved initscript.sample from source to doc directory and committed it.
Jesse Smith
2018-02-20 19:39:07 -0400
1d24d576f1Add fscanf checks to init.c to warn us if calls fail. Mostly to clean up compiler warnings.
Jesse Smith
2018-02-20 19:38:40 -0400
d21c8fc44bPerform error check on setuid() call in shutdown as manual page suggests.
Jesse Smith
2018-02-20 19:37:29 -0400
6a8a216449Fix typo in killall5.c and move initscript.sample file from source tree into "doc" directory.
Jesse Smith
2018-02-20 19:36:21 -0400
986bee63c0Allow multiple console output When booting a kernel with multiple serial console support, or multuiple console arguments ala "console=tty1 console=ttyS0,9600" the kernel will output messages to all consoles, init however will not. It will only send output to, and accept input from, the last of the consoles. This patch fixes it.
Jesse Smith
2018-02-20 19:34:45 -0400
f52d703c8eUpdated bootlogd and init to better compile and run on GNU/kFreeBSD.
Jesse Smith
2018-02-20 19:30:46 -0400
80dbcf3de3Moved the named communication pipe from /dev/initctl to /run/initctl. This patch was supplied by Robert Millan from Debian. FreeBSD apparently does not like named piped in /dev, so we move it to /run for better cross-platform compatibility.
Jesse Smith
2018-02-20 19:29:08 -0400
efa6fefa8eApplied Debian patches to update init Makefile, halt and init documentation.
Jesse Smith
2018-02-20 19:26:09 -0400
7817f31a4fUpdated init.8 man page to include the term "reload" when the Q or q parameter is passed.
Jesse Smith
2018-02-20 19:23:48 -0400
6e3e87bf32Patch to automatically spawn agetty on kernel consoles
Jesse Smith
2018-02-20 19:18:58 -0400
e80878c555Imported patches from Arch Linux's bootlogd to avoid special characters in log file. Also makes parsing easier.
Jesse Smith
2018-02-20 19:16:42 -0400
3e43bb7ccdApplied patches provided in Savannah bug report 49991. Fix tabs in bootlogd and avoid printing unitialized "buf" variable when consolename() fails.
Jesse Smith
2018-02-20 19:14:36 -0400