Systemd/src
Fabiano Fidencio 07459bb6b9 sysv: optionally disable of SysV init/rcN.d support at compile time
This patch adds a cpp definition HAVE_SYSV_COMPAT that is used to
isolate code dealing with /etc/init.d and /etc/rcN.d for systems where
it does not make sense (one that does not use sysv or one that is fully
systemd native).

The patch tries to be as little intrusive as possible, however in
order to minimize the number of #ifdef'ed regions I've reordered some
code in path-lookup.c:lookup_paths_init() where all code dealing with
sysv is now isolated under running_as == MANAGER_SYSTEM as well.

Moreover, In struct Service, some fields were rearranged to reduce
the number of ifdefs.

Lennart's suggestions were fixed and squashed with the original patch,
that was sent by Gustavo Sverzut Barbieri (barbieri@profusion.mobi).
2010-09-27 03:25:05 +02:00
..
linux readahead: implement minimal readahead logic based on fanotify(), mincore() and readahead() 2010-09-23 15:02:13 +02:00
.gitignore ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
99-systemd.rules udev: dm has been fixed in the meantime 2010-08-18 01:04:51 +02:00
ask-password-agent.vala ask-password: popup notification when we ask for a password 2010-09-17 02:32:48 +02:00
ask-password.c ask-password. Initializing socket_fd inside ask_agent. 2010-09-21 00:29:37 +02:00
automount.c automount: make sure we don't crash if there's an automount unit without mount unit 2010-09-06 01:05:38 +02:00
automount.h manager: rename 'maintenance' state to 'failed' to avoid user confusion 2010-08-31 00:17:56 +02:00
build.h sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
bus-errors.h dbus: don't accept activation requests anymore if we are going down anyway 2010-09-01 03:30:59 +02:00
cgls.c systemctl: rework exit codes for all utility programs to follow LSB or other standards 2010-08-31 21:05:54 +02:00
cgroup-show.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
cgroup-show.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
cgroup-util.c service: rework killing logic so that we always kill the main process, even if it left our service cgroup 2010-08-31 23:24:47 +02:00
cgroup-util.h service: rework killing logic so that we always kill the main process, even if it left our service cgroup 2010-08-31 23:24:47 +02:00
cgroup.c service: rework killing logic so that we always kill the main process, even if it left our service cgroup 2010-08-31 23:24:47 +02:00
cgroup.h service: rework killing logic so that we always kill the main process, even if it left our service cgroup 2010-08-31 23:24:47 +02:00
cgroups-agent.c dbus: don't send cgroup agent messages directly to system bus to avoid dbus activation loop 2010-09-03 01:45:53 +02:00
conf-parser.c vconsole: add new utility to initialize the virtual console 2010-09-16 00:36:41 +02:00
conf-parser.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
dbus-automount.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-automount.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
dbus-common.c dbus: simplify some dbus error messages a bit 2010-08-25 19:50:06 +02:00
dbus-common.h dbus: simplify some dbus error messages a bit 2010-08-25 19:50:06 +02:00
dbus-device.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-device.h dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-execute.c exec: replace OOMAdjust= by OOMScoreAdjust= to follow new kernel interface 2010-08-31 01:33:43 +02:00
dbus-execute.h exec: replace OOMAdjust= by OOMScoreAdjust= to follow new kernel interface 2010-08-31 01:33:43 +02:00
dbus-job.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-job.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
dbus-manager.c sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
dbus-manager.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
dbus-mount.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-mount.h dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-path.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-path.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
dbus-service.c sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
dbus-service.h dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-snapshot.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-snapshot.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
dbus-socket.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-socket.h dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-swap.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-swap.h dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-target.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-target.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
dbus-timer.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-timer.h dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
dbus-unit.c manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
dbus-unit.h manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
dbus.c dbus: downgrade activation failure messages 2010-09-06 02:42:42 +02:00
dbus.h dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
device.c device: allow aliases on devices 2010-08-26 04:08:01 +02:00
device.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
execute.c exec: replace OOMAdjust= by OOMScoreAdjust= to follow new kernel interface 2010-08-31 01:33:43 +02:00
execute.h work around busted capability.h 2010-09-03 12:26:30 +02:00
exit-status.c exit-status: add missing files src/exit-status.h src/exit-status.c 2010-08-20 03:26:37 +02:00
exit-status.h exit-status: add missing files src/exit-status.h src/exit-status.c 2010-08-20 03:26:37 +02:00
fdset.c syslog: add minimal syslog/kmsg bridge syslogd 2010-08-21 03:57:47 +02:00
fdset.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
hashmap.c readahead: implement minimal readahead logic based on fanotify(), mincore() and readahead() 2010-09-23 15:02:13 +02:00
hashmap.h hashmap: HASHMAP_FOREACH* iterate until ITERATOR_LAST 2010-09-27 02:09:47 +02:00
hostname-setup.c hostname: if no hostname is configured use localhost 2010-08-19 03:29:43 +02:00
hostname-setup.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
initctl.c systemctl: use isolate when called as telinit for a runlevel 2010-09-14 02:22:55 +02:00
initreq.h man: Fix small typo: s/seperate/separate/ 2010-09-06 03:13:14 +02:00
ioprio.h build-sys: move source files to subdirectory 2010-05-16 18:45:24 +02:00
job.c job: show failure message only for start jobs 2010-09-27 01:37:22 +02:00
job.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
kmod-setup.c vconsole: add new utility to initialize the virtual console 2010-09-16 00:36:41 +02:00
kmod-setup.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
kmsg-syslogd.c systemctl: rework exit codes for all utility programs to follow LSB or other standards 2010-08-31 21:05:54 +02:00
label.c selinux: properly query policy for FIFO files 2010-08-20 02:31:54 +02:00
label.h selinux: properly query policy for FIFO files 2010-08-20 02:31:54 +02:00
list.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
load-dropin.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
load-dropin.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
load-fragment.c sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
load-fragment.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
locale-setup.c suse: locale + vconsole compat support 2010-09-21 15:08:04 +02:00
locale-setup.h locale: initialize locale from /etc/locale by default 2010-09-16 01:57:42 +02:00
log.c log: support logging into SOCK_STREAM /dev/log sockets for comaptibility with syslog-ng 2010-09-08 03:07:44 +02:00
log.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
logger.c logger: support SOCK_STREAM /dev/log sockets as necessary for syslog-ng 2010-09-10 17:11:48 +02:00
loopback-setup.c socket: Support IPv6-less systems with runtime check. 2010-09-21 01:00:38 +02:00
loopback-setup.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
macro.h readahead: implement minimal readahead logic based on fanotify(), mincore() and readahead() 2010-09-23 15:02:13 +02:00
main.c sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
Makefile build-sys: add small redirecting Makefiles to simplify compilation from within emacs 2010-05-17 01:44:03 +02:00
manager.c manager: measure startup times 2010-09-21 04:14:38 +02:00
manager.h sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
missing.h readahead: add btrfs defrag support 2010-09-23 17:11:19 +02:00
modules-load.c systemctl: rework exit codes for all utility programs to follow LSB or other standards 2010-08-31 21:05:54 +02:00
mount-setup.c mount-setup: fix selinux label after mounting 2010-09-15 01:38:07 +02:00
mount-setup.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
mount.c mount: Remove double include of "mount.h" 2010-09-27 01:34:58 +02:00
mount.h manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
namespace.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
namespace.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
notify.c readahead: add interface to sd-daemon.[ch] to control readahead 2010-09-26 15:50:14 +02:00
org.freedesktop.systemd1.conf systemctl: when calling 'status' accept a PID 2010-08-13 02:07:22 +02:00
org.freedesktop.systemd1.policy ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
org.freedesktop.systemd1.service dbus: add missing bus activation file 2010-06-07 04:20:50 +02:00
pam-module.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
path-lookup.c sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
path-lookup.h sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
path.c manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
path.h manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
random-seed.c random-seed: create parents of RANDOM_SEED if they do not exist. 2010-09-20 23:12:50 +02:00
ratelimit.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
ratelimit.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
readahead-collect.c update fixme 2010-09-27 01:24:35 +02:00
readahead-common.c readahead: add interface to sd-daemon.[ch] to control readahead 2010-09-26 15:50:14 +02:00
readahead-common.h readahead: add interface to sd-daemon.[ch] to control readahead 2010-09-26 15:50:14 +02:00
readahead-replay.c readahead-replay: use posix_fadvise instead of readahead 2010-09-26 15:53:23 +02:00
remount-api-vfs.c systemctl: rework exit codes for all utility programs to follow LSB or other standards 2010-08-31 21:05:54 +02:00
reply-password.c ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
sd-daemon.c readahead: add interface to sd-daemon.[ch] to control readahead 2010-09-26 15:50:14 +02:00
sd-daemon.h readahead: add interface to sd-daemon.[ch] to control readahead 2010-09-26 15:50:14 +02:00
securebits.h build-sys: move source files to subdirectory 2010-05-16 18:45:24 +02:00
service.c sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
service.h sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
set.c remount: add tool that applies /etc/fstab mount options to all api mounts 2010-08-20 03:26:15 +02:00
set.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
shutdownd.c systemctl: rework exit codes for all utility programs to follow LSB or other standards 2010-08-31 21:05:54 +02:00
shutdownd.h systemctl: warn in intervals before going down when delayed shutdown is used 2010-08-16 19:26:27 +02:00
snapshot.c dbus: follow standardized fdo PropertiesChanged signal spec 2010-08-20 02:31:54 +02:00
snapshot.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
socket-util.c socket: Support IPv6-less systems with runtime check. 2010-09-21 01:00:38 +02:00
socket-util.h socket: Support IPv6-less systems with runtime check. 2010-09-21 01:00:38 +02:00
socket.c socket: Support IPv6-less systems with runtime check. 2010-09-21 01:00:38 +02:00
socket.h manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
special.h service: translate 'httpd' LSB Provides into '$httpd' on Fedora 2010-09-13 23:53:59 +02:00
specifier.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
specifier.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
strv.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
strv.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
swap.c manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
swap.h manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
system.conf mount: rework automatic mounting to follow the 'nofail' option in fstab 2010-08-25 20:37:04 +02:00
systemadm.vala ask-password: add minimal framework to allow services query SSL/harddisk passphrases from the user 2010-09-17 01:26:29 +02:00
systemctl.c sysv: optionally disable of SysV init/rcN.d support at compile time 2010-09-27 03:25:05 +02:00
systemd-interfaces.vala manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
target.c target: add implicit target/unit ordering deps only if both sides have been fully loaded 2010-09-14 01:51:30 +02:00
target.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
tcpwrap.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
tcpwrap.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
test-cgroup.c service: rework killing logic so that we always kill the main process, even if it left our service cgroup 2010-08-31 23:24:47 +02:00
test-daemon.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
test-engine.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
test-env-replace.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
test-hostname.c hostname: on all distros make the name configured in /etc/hostname take precedence over distro-specific configuration 2010-08-19 03:02:22 +02:00
test-job-type.c man: Fix small typo: s/seperate/separate/ 2010-09-06 03:13:14 +02:00
test-loopback.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
test-ns.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
timer.c manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
timer.h manager: add missing second part of s/maintenance/failed/ 2010-08-31 00:23:34 +02:00
unit-name.c emacs: make sure nobody accidently adds tabs to our sources 2010-08-14 19:59:25 +02:00
unit-name.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
unit.c target: add implicit target/unit ordering deps only if both sides have been fully loaded 2010-09-14 01:51:30 +02:00
unit.h target: add implicit target/unit ordering deps only if both sides have been fully loaded 2010-09-14 01:51:30 +02:00
update-utmp.c dbus: make sure to flush bus connection before disconnecting, so that no messages are lost 2010-09-02 23:26:04 +02:00
util.c locale: make sure we don't merge configuration settings from different sources 2010-09-21 01:51:23 +02:00
util.h manager: measure startup times 2010-09-21 04:14:38 +02:00
utmp-wtmp.c util: use format_timestamp() instead of ctime() wherever possible 2010-08-16 21:24:50 +02:00
utmp-wtmp.h emacs: disable tabs in .h files, too 2010-08-17 03:50:18 +02:00
vconsole-setup.c suse: locale + vconsole compat support 2010-09-21 15:08:04 +02:00