]>
Commit | Line | Data |
---|---|---|
e5898f2a AM |
1 | Index: rc.d/rc.sysinit |
2 | =================================================================== | |
3 | --- rc.d/rc.sysinit (wersja 12481) | |
4 | +++ rc.d/rc.sysinit (wersja 12485) | |
5 | @@ -570,6 +570,10 @@ | |
6 | # Load modules | |
7 | if ! use_upstart; then | |
8 | load_kernel_modules modules | |
9 | + for f in /etc/modules-load.d/*.conf ; do | |
10 | + [ -r $f ] || continue | |
11 | + load_kernel_modules ${f##/etc/} | |
12 | + done | |
13 | fi | |
14 | ||
15 | if [ -x /sbin/multipath ] && ! is_no "$DM_MULTIPATH"; then | |
16 | Index: service | |
17 | =================================================================== | |
18 | --- service (wersja 12481) | |
19 | +++ service (wersja 12485) | |
20 | @@ -85,6 +85,14 @@ | |
21 | echo "${VERSION}" >&2 | |
22 | exit 0 | |
23 | ;; | |
24 | + --ignore-dependencies) | |
25 | + export SYSTEMCTL_IGNORE_DEPENDENCIES=1 | |
26 | + shift | |
27 | + ;; | |
28 | + --skip-redirect) | |
29 | + export SYSTEMCTL_SKIP_REDIRECT=1 | |
30 | + shift | |
31 | + ;; | |
32 | --upstart) | |
33 | USE_UPSTART=yes | |
34 | shift | |
35 | @@ -116,7 +124,10 @@ | |
36 | esac | |
37 | done | |
38 | ||
39 | -if [ -x "${SERVICEDIR}/${SERVICE}" ]; then | |
40 | +if [ -x /bin/systemd_booted ] && /bin/systemd_booted && /bin/systemctl status ${SERVICE}.service > /dev/null 2>&1; then | |
41 | + echo >&2 "Redirecting to /bin/systemctl ${OPTIONS} ${SERVICE}.service" | |
42 | + exec /bin/systemctl ${ACTION} ${SERVICE}.service ${OPTIONS} | |
43 | +elif [ -x "${SERVICEDIR}/${SERVICE}" ]; then | |
44 | exec env -i USE_UPSTART=$USE_UPSTART LANG=$LANG PATH=$PATH TERM=$TERM "${SERVICEDIR}/${SERVICE}" ${ACTION} ${OPTIONS} | |
45 | else | |
46 | echo "${SERVICE}: unrecognized service" >&2 |