Commit Graph

109 Commits

Author SHA1 Message Date
Jesse 5f278d1e60 Update changelog. 2024-08-17 17:02:49 -03:00
Jesse 77a58d1f10 Add check for OpenRC-run at /usr/sbin/openrc-run to
make sure we find the proper path under merged /usr situations.
2024-08-01 18:14:08 -03:00
Jesse Smith 22481c369a Improve man page description of the -c (--config) flag. 2023-11-24 18:47:30 -04:00
Jesse a15e16cfe3 Make it possible to override systemd path and binary information. 2022-10-09 17:06:02 -03:00
Jesse 07fc9220a8 Fixed typo in build instructions in README file.
Update version number in Makefile.
2022-02-21 18:49:47 -04:00
Jesse Smith 5d18d8cec2 Added ignore rule for insserv which skips over
files with the .ucf* suffix.
Patch provided by Mark Hindley.
2021-10-06 13:46:55 -03:00
Jesse Smith 69a6459e4d Fix off-by-one error in filename filtering.
Patch provided by Mark Hindley.
2021-10-06 08:34:05 -03:00
Jesse Smith b63c71511d Updated version information in Makefile. 2021-02-20 14:03:05 -04:00
Jesse Smith 87e06b7880 Fixed typo in manual page. 2020-12-21 10:37:10 -04:00
Jesse Smith a6e3b022c2 - Check only LSB header for overlapping runlevels to fix.
- Updated manual page to indicate scripts with LSB headers
  that do not include a start (or stop) runlevel will not
  be marked for starting (or stopping).
2020-12-15 17:32:51 -04:00
Jesse Smith 6a65f4412a Added support for checking to see if a script that is missing its LSB
header may be an OpenRC script.
Patch provided by Merlijn Wajer, Ivan J, and Tito.
2020-06-08 14:49:16 -03:00
Jesse Smith 8b757f7584 Make sure we define "extension" for older versions of GCC (5 and under).
Make systemd/dbus support optional in Makefile using WANT_SYSTEMD
flag.
Make sure "extension" keyword is defined for older versions of
GCC (5 and under).
- Patches provided by Petr Ovtchenkov and Dmitry Bogatov.
2019-09-12 19:57:05 -03:00
Jesse Smith 203422a946 Added PREFIX variable to Makefile. Defaults to /usr
for executable and manual page. This moves the insserv
executable from /sbin/insserv to /usr/sbin/insserv
2019-09-12 17:47:24 -03:00
Jesse Smith c88c95e29f Cleaned out debugging flag from build. 2019-09-12 11:45:57 -03:00
Jesse Smith 42bd522172 Fixed typo when assigning directory path when -i is used.
Updated testsuite to match fixed directory path when -i is used.
2019-08-18 20:53:07 -03:00
Jesse Smith 76c8673bc8 Updated version number in Makefile. 2019-08-18 20:23:53 -03:00
Jesse Smith 9b7c925efd Minor update to runlevel descriptions in manual page. 2019-07-21 17:09:20 -03:00
Jesse Smith 81fca9bff0 Added --silent (-q) flag to provide a silent mode.
When in silent mode, inserv does not print minor
warnings, only fatal errors.
2019-07-21 17:08:14 -03:00
Jesse Smith 4ac34a61c0 Make it clear that when verbose flag is used, messages are
printed to stderr.
2019-07-17 19:04:04 -03:00
Jesse Smith f6eec00107 Fixed typo in manual page. Thanks to Dmitry Bogatov for
the correction.
2019-06-15 15:53:01 -03:00
Jesse Smith be753a24f7 Updated changelog file for release. 2019-06-15 13:59:41 -03:00
Jesse Smith 07375c6b24 Fixed test and help text to reflect current path to Makefile-style
dependency files.
2019-05-25 14:51:29 -03:00
Jesse Smith 21bd05e8d6 Reverted change which placed Makefile-style dependency information
in /lib/insserv or /var/lib/insserv as these locations may not be
available at boot and/or are not in line with FHS.
2019-05-25 14:33:51 -03:00
Jesse Smith 18fd27beff Changed location of makefile-style dependency information
from /var/lib/insserv/ to /lib/insserv/ to avoid situations
where /var may not be mounted at boot.
2019-05-21 19:46:26 -03:00
Jesse Smith e78e61e995 The Makefile no longer overwrites existing /etc/insserv.conf file if it exists.
This could cause errors next tme insserv was run if distro-specific/local
changes were overwritten. If the /etc/insserv.conf file already exists
we make a new file called /etc/insserv.conf.sample instead.
2019-05-17 19:18:55 -03:00
Jesse Smith 9bc37a5157 The insserv program now loads optional extensions from /etc/insserv/file-filters
which will be ignored if found in the init.d directory. This allows admins
to filter out file extensions which may be used to manage services (such as
.git or .puppet).
Closes Debian bug #622878
2019-05-05 16:29:24 -03:00
Jesse Smith 9cad5fbc24 Fixed $all dependency check in testsuite to match sepcified dependencies.
See Debian bug #491391.
2019-05-04 21:01:57 -03:00
Jesse Smith ddd9d38c4c Make sure insserv warns when a script requires a missing
dependency such as $network or $foobar.
2019-05-04 20:43:20 -03:00
Jesse Smith 64c907c226 Avoid cleaning up when warnings happen in testsuite.
Fixed backward logic Required-Stop logic in testsuite.
2019-05-04 17:25:48 -03:00
Jesse Smith c3ac1aaa62 Added -i flag to let user specify the location of the Makefile-style
dependency files.
Removed symbolic link in tests/ directory.
Updated test scripts to not require symbolic link.
2019-04-28 13:53:42 -03:00
Jesse Smith 81ce643024 Added run-testsuite test to Makefile's "check" target. 2019-04-25 11:42:27 -03:00
Jesse Smith a06c7faec8 The insserv program now warns when a script has the
same runlevel specified in both the Default-Start
and Default-Stop fields of its LSB header.
Should close Debian bug #538304.
2019-04-11 17:48:23 -03:00
Jesse Smith fb337d3df0 Moved reference for startpar from section 8 to 1. Updated
insserv man page to match.
2019-04-06 17:25:00 -03:00
Jesse Smith b0fc9d2353 Updated Makefile to next version (1.20.0) 2019-03-04 20:16:05 -04:00
Jesse Smith 13afec2c2b Make sure directory for Makefile-style dependency scripts
exists, if we need it.
2019-03-03 21:22:42 -04:00
Jesse Smith 907a83b649 The insserv command now places Makefile-style
dependency files in the /var/lib/insserv/ directory.
This information was previously kept in /etc/init.d/.
The --legacy-path (-l) flag has been added to insserv's
command line options which allows the old, /etc/init.d/
path to be used to store dependeny information.
2019-03-03 21:07:39 -04:00
Jesse Smith 6cd663dcd0 Updated changelog with credit for Makefile patch. 2019-02-21 14:44:23 -04:00
Jesse Smith 42c19ebff5 Updated Makefile to avoid rebuilding insserv on Debian build
system at multiple stages.
2019-02-21 14:41:29 -04:00
Jesse Smith cf774e9b1e Minor documentation update.
Make sure Makefile cleans up after creating tarball.
2019-01-31 19:28:07 -04:00
Jesse Smith 3b867c6628 Print full path names when giving status updates on creating
(or failing to create) files such as .depend.boot, .depend.start
and .depend.stop.
Addresses Debian bug #547609
2019-01-27 20:28:09 -04:00
Jesse Smith b9841a3c74 Added two new checks to avoid potential segfault. 2019-01-26 19:28:51 -04:00
Jesse Smith 143e53b5f3 Minor code formatting changes. 2019-01-20 18:01:02 -04:00
Jesse Smith 40f18606f8 Updated insserv manual page. Closes
Debian bug #919610
2019-01-18 12:35:12 -04:00
Jesse Smith eb3a7f8e43 Applied patch from Bloeslaw Tokarski which should improve
performance of insserv in some cases by bypassing unnecessary
some fadvise calls.
Closes Debian bug #775912
2019-01-15 19:24:15 -04:00
Jesse Smith d05c1ad557 Updated warning message insserv disables when an init.d script
is not executable, to better indicate the script will not
be enabled at boot/entering runlevel.
Closes Debian bug 661314.
2018-12-20 00:00:48 -04:00
Jesse Smith 1100e4610a Fixed bug in pushd() and popd() which would cause insserv to
crash with an error if the current working directory was not
accessible.
Closes Debian bug #573571.
2018-12-16 12:36:21 -04:00
Jesse Smith 29ebb5d884 Cause Makefile to create link needed for testing in "tests"
directory when building insserv. Running distclean removes
link to avoid cluttering archive.
2018-12-15 13:28:03 -04:00
Jesse Smith df42d570c6 Fixed typo in warning messages. 2018-12-13 12:24:48 -04:00
Jesse Smith 4f5d30f00e Migrated the Debian testsuite upstream into the "tests" directory. 2018-12-09 17:18:53 -04:00
Jesse Smith 88417b39fe Updated Makefile with next version number. 2018-12-01 19:26:11 -04:00