Commit Graph

15 Commits

Author SHA1 Message Date
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 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 c41ebc52a2 Fixed compiler warnings so that unused variables listed in
listing.h are skipped when not needed.
2018-11-07 15:27:25 -04:00
Jesse Smith 2ab89823f7 Moved map_ functions out of inline insserv.c program and into their
own module (map.c). Updated Makefile to reflect changes.

Cleaned up function definitions to avoid compiler warnings/errors.
2018-08-18 22:55:44 -03:00
Jesse Smith 5934421d5d Updated insserv.c and listing.h to fix compile errors.
Fixed Makefile so that all source dependencies are found.

Allow CC to be defined outside of Makefile so we are not tied to GCC.
2018-08-14 16:39:10 -03:00
Petter Reinholdtsen eab869f6b0 Rewrite logic in xreset to explicitly look for the empty string instead of leaking all other strings with no content. 2014-04-26 06:57:29 +00:00
Werner Fink bd70202e71 - Add systemd support
* Talk with systemd over dbus connection to get all services and
    targets known by systemd
  * Implement missing garbage collector for system facilities as
    the systemd targets are used as system facilities
  + Side efect is that we detect loops in the systemd units
2012-11-14 12:58:07 +00:00
Werner Fink 23006035df - Add showall patch from Debian developer Kel Modderman
- Avoid warnings if there exsists LSB tags for a script in the
  override locations (fate #314069)  
- Do not enforce service reload in case of an other root files
  system no in case of not having systemd running (bnc#728947)   
- We should forward to systemctl when running under rpm (this is
  supposed to be handled outside insserv) (from Frederic Crozat)
- When insserv is called with full path of initscript
  ("insserv /etc/init.d/acpid") , systemctl was called with a "null"
  alternative root (from Frederic Crozat).
- Enable insserv to support systemd services if shadowed by systemd
- Skip `FATAL' key word from messages currently nonfatal
- Linked lists: support prefetch of next pointer address for all
  architectures
- Make temporary the new dependency checks nonfatal
- Warn if dependencies are not done in all runlevel
- Ignore real boot scripts for runlevel services as those
  are already enabled.
2012-10-26 11:21:41 +00:00
Werner Fink ea4746ff77 Make prefetch available for all architectures 2011-02-07 12:24:52 +00:00
Werner Fink a62fc623e6 Remove redundant dependencies in the .depend.* makefiles 2010-06-18 16:10:03 +00:00
Werner Fink 00ce424704 Do not forget the aliases in the makefiles 2010-06-15 12:06:34 +00:00
Werner Fink 0334d43a88 Sort dependency lists of the services that is the highest dependencies first 2010-06-10 15:23:16 +00:00
Werner Fink feefd1430c Also add the used bit flags to listing.h 2010-04-30 16:32:43 +00:00
Werner Fink 7fc9e206ef Add some patches from Debian developers, mainly Petter Reinholdtsen 2009-10-07 13:08:00 +00:00
Werner Fink 5f0488d3ac Initial checkin of insserv 2009-09-30 13:59:37 +00:00