mirror of
https://github.com/systemd/systemd
synced 2024-10-15 04:24:19 +00:00
units: SUSE support
This commit is contained in:
parent
eaf67512d3
commit
cfe243e372
|
@ -179,7 +179,7 @@ case $with_distro in
|
|||
;;
|
||||
suse)
|
||||
SYSTEM_SYSVRCND_PATH=/etc/init.d
|
||||
AC_DEFINE(TARGET_SUSE, [], [Target is OpenSUSE/SLES])
|
||||
AC_DEFINE(TARGET_SUSE, [], [Target is OpenSUSE/SLE])
|
||||
M4_DISTRO_FLAG=-DTARGET_SUSE=1
|
||||
;;
|
||||
debian)
|
||||
|
|
|
@ -57,7 +57,7 @@ static const struct {
|
|||
{ "rc5.d", SPECIAL_RUNLEVEL5_TARGET, RUNLEVEL_UP },
|
||||
{ "rc6.d", SPECIAL_RUNLEVEL6_TARGET, RUNLEVEL_DOWN },
|
||||
|
||||
/* SuSE style boot.d */
|
||||
/* SUSE style boot.d */
|
||||
{ "boot.d", SPECIAL_BASIC_TARGET, RUNLEVEL_BASIC },
|
||||
|
||||
/* Debian style rcS.d */
|
||||
|
@ -676,7 +676,7 @@ static int service_load_sysv_name(Service *s, const char *name) {
|
|||
free(path);
|
||||
|
||||
if (r >= 0 && UNIT(s)->meta.load_state == UNIT_STUB) {
|
||||
/* Try Suse style boot.xxx init scripts */
|
||||
/* Try SUSE style boot.xxx init scripts */
|
||||
|
||||
if (asprintf(&path, "%s/boot.%s", *p, name) < 0)
|
||||
return -ENOMEM;
|
||||
|
|
|
@ -6,6 +6,7 @@
|
|||
# (at your option) any later version.
|
||||
|
||||
m4_ifdef(`TARGET_FEDORA', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
|
||||
m4_ifdef(`TARGET_SUSE', `m4_define(`GETTY', `/sbin/mingetty')')m4_dnl
|
||||
m4_ifdef(`TARGET_DEBIAN', `m4_define(`GETTY', `/sbin/getty 38400')')m4_dnl
|
||||
m4_ifdef(`TARGET_GENTOO', `m4_define(`GETTY', `/sbin/agetty 38400')')m4_dnl
|
||||
m4_dnl
|
||||
|
|
|
@ -17,3 +17,6 @@ m4_ifdef(`TARGET_FEDORA',
|
|||
m4_dnl On Fedora Runlevel 5 is graphical login
|
||||
Names=runlevel5.target
|
||||
)m4_dnl
|
||||
m4_ifdef(`TARGET_SUSE',
|
||||
Names=runlevel5.target
|
||||
)m4_dnl
|
||||
|
|
|
@ -17,3 +17,6 @@ m4_ifdef(`TARGET_FEDORA',
|
|||
m4_dnl On Fedora Runlevel 3 is multi-user
|
||||
Names=runlevel3.target
|
||||
)m4_dnl
|
||||
m4_ifdef(`TARGET_SUSE',
|
||||
Names=runlevel3.target
|
||||
)m4_dnl
|
||||
|
|
Loading…
Reference in a new issue