Jesse
dfa3f1fb5f
Re-added de.po which got accidentally removed in previous merge/release.
2022-08-23 15:09:57 -03:00
Jesse
e372442256
Fix typo in man/po/es.po
...
Clean up src/Makefile translation code.
2022-08-23 15:08:13 -03:00
Jesse
134ee88a43
Merge branch '3.05'
2022-08-21 13:52:24 -03:00
Jesse
e2859b9ed5
Added new .pot file for tracking.
2022-08-21 13:49:45 -03:00
Jesse
6f460ba93e
Fixed another typo in changelog.
2022-08-21 13:48:03 -03:00
Jesse
03979af363
Fix changelog typo.
2022-08-21 13:47:36 -03:00
Jesse
d2694b4986
Applied patch for fixing sulogin compiling on newest glibc version.
2022-08-21 13:46:59 -03:00
Jesse
c861c41d5e
Updated Makefile and po4a.cnf with some clean-up.
2022-06-09 14:58:26 -03:00
Jesse
4adc25752c
Adjust man page Makefile to clean up language directories.
2022-05-09 12:52:19 -03:00
Jesse
08810d78ff
Applied patches from Mark Hindley to clean up man page
...
Makefile, translations and installs of new man pages.
2022-05-09 12:48:54 -03:00
Jesse
746b0fc6a9
Add sys/sysmacros.h to mountpoint.c to fix compiling on
...
systems where major/minor macros are not defined implicitly.
2022-05-04 12:10:27 -03:00
Jesse
e3d0f4bfc1
Add translation code and Makefile.
2022-05-01 16:12:14 -03:00
Jesse
43faf49b73
Updated changelog with new release version.
2022-04-26 14:37:07 -03:00
Jesse
bd0005e9b8
Added define for GNU Hurd to pull in major/minor macros and
...
allow bootlogd to compile on Hurd.
2022-04-16 16:12:03 -03:00
Jesse
5eee38102b
Updated README with location of verification keys.
2022-04-13 18:56:47 -03:00
Jesse
133eb15556
Updated changelog in preparation for release.
2022-04-13 12:48:52 -03:00
Jesse
d291bd320d
Acknowledged recent fix for Hurd also fixes musl C library builds.
2022-04-12 23:52:35 -03:00
Jesse
14d8d25269
Fixed compile error on GNU Hurd. Issue reported by Mark Hindly.
2022-03-30 00:00:45 -03:00
Jesse
dfb227ce77
Fixed formatting in init.8 manual page. Fix provided by Mark Hindley.
2022-03-29 11:07:39 -03:00
Jesse
1fa57a02fd
Merge branch '3.02'
2022-03-28 22:41:31 -03:00
Jesse
6d5b889d52
Updated changelog for release.
2022-03-28 22:39:47 -03:00
Jesse
124f3c2054
* Introduced change which adds error checking in bootlogd when performing
...
chdir(). - Provided by Alexander Vickberg
* Add check for console using TIOCGDEV on Linux systems in bootlogd to
make finding console more robust. - Provided by Alexander Vickberg
2022-03-10 13:51:02 -04:00
Jesse
644ee05aab
Update manual pages with markup and spacing fixes.
...
Added ability to use "@" symbol in command named in the inittab file. This
treats commands as literal and does not launch a shell to interpret them.
Updated inittab manual page to include overview of symbols which trigger
a shell interpretor and how to disable them using the @ symbol.
2022-02-15 17:01:41 -04:00
Jesse
3b233b0690
Updated link to upstream.
2022-02-08 15:17:00 -04:00
Jesse
d8636e7a95
Updated README to reflect new upstream.
2022-02-08 15:15:40 -04:00
Jesse
7fe329ebd1
Updated README
2022-02-08 15:15:01 -04:00
Jesse
f55348808d
Applied new translation support from Mario Blattermann.
2022-01-27 21:39:55 -04:00
Jesse
a6e80e1133
Added new Makefile to the "man" directory. This will handle the logic
...
for changes, substitutions, and clean-up of the man pages.
For now install instructions are still in the "src" directory
to avoid breaking install scripts.
2021-12-27 17:50:25 -04:00
Jesse
92d4b0e74a
Applied fixes for markup and spacing in manual pages.
...
Patch provided by Mario Blattermann.
Added translation framework (po4a) from Mario Blttermann.
2021-12-27 16:14:42 -04:00
Jesse
933ce33854
Add Q and q flags to synopsis section of shutdown manual page.
...
Patch provided by Helge Kreutzmann through Mark Hindley.
Closes Debian bug #1001908
2021-12-22 13:32:50 -04:00
Jesse
603a2ce3a8
Merge branch '3.01' of git.savannah.nongnu.org:/srv/git/sysvinit into 3.01
2021-12-13 15:10:33 -04:00
Jesse
b4917aaa54
Update changlog.
...
Removed check in inittab parsing which always evaluates to false.
2021-12-13 15:04:10 -04:00
Jesse
c2b811d105
Updated version information in init
2021-10-26 20:44:29 -03:00
Jesse Smith
0b695c7e0b
Use readlink() instead of stat() to check processes. This shold avoid
...
hanging if NFS mounts are not responding.
Default to showing processes in the uninterruptable state (D).
The -z flag no longer affects whether processes in D state are shown.
The -z flag does still toggle whether zombie (Z) processes are shown.
2021-10-21 14:44:55 -03:00
Jesse Smith
665e707f51
Updated changelog to match new 3.00 release.
2021-09-16 10:51:28 -03:00
Jesse Smith
8a085ea9b7
Applied patch from Matthias Schiffer which allows bootlogd to read from
...
a wider range of consoles. The console name is already passed in from the
kernel command line using "console=". We no longer filter out names as strictly
but do now check to confirm the "console=" device points to a valid TTY.
2021-08-03 18:21:16 -03:00
Jesse Smith
bb6d5dfcd6
Updated changelog with new version information.
2021-02-20 14:08:21 -04:00
Jesse Smith
ae1862708b
Updated changelog.
2020-12-14 17:58:45 -04:00
Jesse Smith
2729c3f5da
Fixed typos and missing underlies in shutdown manual page.
...
Corrections provided by Helge Kreutzmann.
2020-12-14 17:34:10 -04:00
Jesse Smith
ab53132154
Removed old original source file that was left behind by
...
patch action.
Fixed typos in source code, comments, manual pages, and
changelog. Corrections provided by Jens Schleusener of
FOSSIES (fossies.org).
2020-11-17 20:31:37 -04:00
Jesse Smith
5567f1654f
Changes order of some manual pages references.
...
Updated changelog fole/
2020-11-15 19:47:50 -04:00
Jesse Smith
2fc71a95f9
Updated changelog.
2020-08-16 14:20:21 -03:00
Jesse Smith
462a92ce2a
Fixed time parsing in shutdown when there is a + in front of a 0 time offset.
...
Commands with a postiive time offset (+1) would work but +0 fails.
This has been corrected by Arkadiusz Miskiewicz.
2020-08-15 18:50:58 -03:00
Jesse Smith
7ca2d2413f
Updated changelog to credit Helge Kreutzmann with manual page updates.
2020-07-06 16:01:25 -03:00
Jesse Smith
b7fe11f4ab
Fixed type and order of references in manual page.
2020-07-06 15:50:46 -03:00
Jesse Smith
584df5efaf
Added patch from William Shipley which allows shutdown time to be specified
...
in the format +hh:mm. This is in addition to the existing formats such as
hh:mm, +m, and "now".
Cleared up compiler warning in dowall which can happen if the
output message is longer than the size limit on the snprintf()
buffer. This is not a bug, a the trucation works, but using a larger
buffer avoids the warning on systems with long user/host names.
2020-06-20 13:41:18 -03:00
Jesse Smith
d4cc79bcb9
Added patch from Didier Gaudin which allows init to load configuration
...
data from files stored in /etc/inittab.d/
2020-01-08 19:42:43 -04:00
Jesse Smith
e48bfdc5dc
Updated sysd2v script in contrib directory to version 0.3,
...
to match latest upstream.
2019-11-27 13:26:38 -04:00
Jesse Smith
3accc5e30c
Removed old TODO file.
...
Added sysd2v script which converts systemd unit files
into init.d style shell scripts.
2019-11-16 15:58:56 -04:00
Jesse Smith
9bc925d0e9
Avoid freeing unused memory. Some code clean-up.
...
Patch provided by David Hoyer.
2019-11-04 12:12:44 -04:00
Jesse Smith
ad50c8272e
Make sure git ignores new executable files in src directory.
...
Make location of libcrypt library more flexible.
2019-09-12 17:35:55 -03:00
Jesse Smith
13cb3665b1
Make sure src/Makefile cleans up all executable files when
...
parent makefile calles "make clean".
2019-09-11 14:42:20 -03:00
Jesse Smith
06d9afaa87
Updated changelog.
2019-08-11 22:14:38 -03:00
Jesse Smith
fa124114ae
Reformatted init code to make if/while logic more clear.
...
Cleaned up some output from readbootlog.
Added -e flg to bootlogd. When -e is used, data saved
to the boot log file does not have escape characters
removed. This means colour and cursor movement codes
stay in the log file. The may then look nicer when
read with "less -R', but may appear cluttered or
out of alignment when viewed with other, plain-text tools.
2019-08-11 22:10:45 -03:00
Jesse Smith
362315a997
Updated changelog.
2019-07-04 22:01:31 -03:00
Jesse Smith
39df2f0fa3
Added -z command line paramter to pidof which tells pidof to
...
try to find processes in uninterruptable (D) or zombie (Z) states.
This can cause pidof to hang, but produces a more complete process
list.
2019-07-04 22:00:47 -03:00
Jesse Smith
5f96543c96
Updated changelog for release.
2019-06-15 14:01:01 -03:00
Jesse Smith
df1aec8981
Accepted patch from Luc Gommans which explains why zombie and
...
deep sleep processes (Z and D) may be hidden from pidof
2019-05-25 15:41:57 -03:00
Jesse Smith
cc464b1189
Use millisecond delays in init so that shutdown
...
can happen without a near-full-second delay after
all processes have terminated. Replaced do_sleep()
with do_msleep(), provided by Serge Belyshev.
Replaced hardwired sleep constants in init.c with
defined constants for easy updating in the future.
2019-04-20 18:54:46 -03:00
Jesse Smith
647ec365c6
Updated manual page for shutdown to better describe -h, -H and -P
...
flags.
2019-04-08 13:02:41 -03:00
Jesse Smith
f1da344565
Dropped "-f" format flag for pidof command as it
...
could be used to print information from memory or crash
pidof. Replaced flag with "-d" which allows for a custom
separator to be used between listed PIDs.
Patch supplied by KatolaZ.
2019-03-20 13:46:36 -03:00
Jesse Smith
4e2ad6a698
Fixed segfault in pidof when the -f (format) flag is used with
...
crafted format strings.
Avoid printing stack memory when special format string is passed
to -f.
Listed control characters for -f flag in manual page.
2019-03-18 18:09:24 -03:00
Jesse Smith
e19b991bb0
Add reference to fstab (5) manual page in our
...
fstab-decode page.
2019-03-05 11:54:10 -04:00
Jesse Smith
b5b5b268aa
Updated manual description of fstab-decode
2019-03-03 17:35:22 -04:00
Jesse Smith
cf55352b97
Fixed various typos and control codes in manual pages.
...
Patch provided by Bjarni Ingi Gislason.
2019-03-03 17:32:28 -04:00
Jesse Smith
80e83960da
Updated the fstab-decode manual page to explain what the utility does.
2019-02-21 15:09:48 -04:00
Jesse Smith
25191ff9aa
Merge branch '2.94'
2019-02-19 19:22:15 -04:00
Jesse Smith
aa3b8121e1
Fixed typo in init.8 manual page.
2019-02-17 21:51:13 -04:00
Jesse Smith
09f8dcc90e
Updated wall.c to make it easier to adjust buffer sizes without
...
causing overflow or off-by-one errors.
2019-01-27 16:04:13 -04:00
Jesse Smith
483dc777d2
Changed 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.
Minor code fixes across multiple source files to avoid buffer
overflows, or uninitialized strings.
2019-01-27 15:55:08 -04:00
Jesse Smith
43b5c64126
Use defined constant for field length for easier updating/patching
...
in sulogin.c
2019-01-13 12:24:12 -04:00
Jesse Smith
5af4ee50a8
Minor update to defines and Makefile to avoid compile warnings
...
when building logsave.
2019-01-01 17:06:07 -04:00
Jesse Smith
3f2b4a5704
Added logsave.c and logsave.8 manual page from e2fsprogs to make
...
sure logsave is available to initscripts.
Updated src/Makefile to make sure bootlogd compiles with Clang.
2018-12-31 16:31:34 -04:00
Jesse Smith
5d955d55c8
Increased 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.
2018-12-29 14:46:10 -04:00
Jesse Smith
9e8553cacb
Updated copyright in init and removed unused Version variable from killall5.c
2018-12-27 15:31:14 -04:00
Jesse Smith
be8d584161
Added some defines and compile-time conditionals to make some
...
components of sysvinit compile on FreeBSD.
2018-12-09 19:32:04 -04:00
Jesse Smith
5dc965ba10
Removed references to malloc.h Allocating and freeing memory
...
is now handled by stdlib.h
2018-12-09 17:55:52 -04:00
Jesse Smith
64ebef64c8
Updated changelog to reflect new version number.
2018-11-24 12:49:14 -04:00
Jesse Smith
cb0a849e87
Added patch to re-enable the omit flag (-o) in pidof.
2018-11-24 12:37:25 -04:00
Jesse Smith
f0e93128bc
When 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.
2018-11-23 22:11:42 -04:00
Jesse Smith
c03e2fac2b
Added 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 .
2018-11-23 18:00:23 -04:00
Jesse Smith
c679a49aac
Added patch from Samuel Thibault to make project compile
...
on Hurd branch of Debian.
2018-11-19 18:12:13 -04:00
Jesse Smith
5b03e0faf0
Updated shutdown manual page to try to clarify which components
...
of the shutdown process vs shutdown program we are referring to.
2018-11-15 13:28:35 -04:00
Jesse Smith
f064d8f4b9
Added reference to readbootlog to the bootlogd manual page. This
...
should allow Debian bug #725123 to be closed.
2018-11-12 20:58:44 -04:00
Jesse Smith
5d3815b0ff
Added manual page and options for readbootlog.
2018-11-12 20:53:52 -04:00
Jesse Smith
7c1a8d932a
Added 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.
2018-11-12 20:29:28 -04:00
Jesse Smith
aa6873b85b
Removed typos from pidof manual page and killall5 page.
...
Closes Debian bugs #815839 , #905245 and #890478
Added -f <format> option to pidof program to allow printf
style formating.
Closes Debian bug #571590
Thanks to Philipp Marek for the patch.
2018-11-10 21:27:11 -04:00
Jesse Smith
2ece2c0364
Updated src/Makefile to confirm we build all the necessary software
...
prior to trying to install it.
2018-11-07 17:24:55 -04:00
Jesse Smith
848ee05104
Updated init manual page to include GRUB in boot loader comment
...
as LILO is rarely used outside of the Slackware family these days.
Switched stty flags to use ECHOE instead of ECHOPRT. This should
give smoother, more natural backspac-erase behaviour on emergency
consoles. (Created in init -b mode.)
2018-11-05 23:15:11 -04:00
Jesse Smith
2fd897ff3a
Fixed typo in changelog.
2018-11-01 22:06:14 -03:00
Jesse Smith
c45219c64f
Added -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.
2018-11-01 17:21:47 -03:00
Jesse Smith
44fce86dde
Added -l flag to "last" command. When used it allows "last" to
...
display usernames longer than 8 characters long.
2018-10-30 21:46:04 -03:00
Jesse Smith
be8e6b9e1c
shutdown 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.
2018-10-28 16:19:26 -03:00
Jesse Smith
a17f736a42
Applied patch from Regid Ichira to clarify shutdown command
...
line options. Updated manual page for shutdown.
Closes Debian bug #630661 .
2018-10-27 20:37:47 -03:00
Jesse Smith
1b659c8ebe
Applied 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.
2018-10-27 20:26:15 -03:00
Jesse Smith
b4f8539153
Addressed man page documentation to warn the halt -i flag may
...
not properly shut down a network interface if it has no
valid IP address.
2018-10-22 22:19:49 -03:00
Jesse Smith
ed85143837
Removed super loud PC speaker beep during shutdown.
...
Closes Debian bug #614893 . Patch from Andreas Fackler.
2018-10-22 22:03:09 -03:00
Jesse Smith
d27e34754a
Unified 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 .
2018-10-22 21:44:39 -03:00
Jesse Smith
7b1d470949
Added 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.
2018-09-29 17:12:12 -03:00
Jesse Smith
c29655a5c8
Updated 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.
2018-09-08 23:29:02 -03:00