From: Lennart Poettering Date: Wed, 28 Jun 2023 07:50:16 +0000 (+0200) Subject: sysv-generator: deprecate even more X-Git-Tag: v254-rc1~100 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d97475b270ed7651e1610e908c23ef65b62bbc4;p=thirdparty%2Fsystemd.git sysv-generator: deprecate even more Let's add a comment about the deprecation to the docs, and as comment to the sources. Follow-up for: #28179 --- diff --git a/man/systemd-sysv-generator.xml b/man/systemd-sysv-generator.xml index e9f318b5492..2172e0926a9 100644 --- a/man/systemd-sysv-generator.xml +++ b/man/systemd-sysv-generator.xml @@ -27,38 +27,35 @@ Description - systemd-sysv-generator is a generator - that creates wrapper .service units for - SysV init - scripts in /etc/init.d/* at boot and when - configuration of the system manager is reloaded. This allows - systemd1 - to support them similarly to native units. + Note: this component is deprecated and scheduled for removal. Please replace remaining + SysV init scripts with native unit files. - LSB headers - in SysV init scripts are interpreted, and the ordering specified - in the header is turned into dependencies between the generated - unit and other units. The LSB facilities - $remote_fs, $network, - $named, $portmap, - $time are supported and will be turned into - dependencies on specific native systemd targets. See - systemd.special7 - for more details. + systemd-sysv-generator is a generator that creates wrapper .service units for + System V init scripts in + /etc/init.d/* at boot and when configuration of the system manager is reloaded. This + allows systemd1 to + support them similarly to native units. + + LSB + headers in SysV init scripts are interpreted, and the ordering specified in the header is turned + into dependencies between the generated unit and other units. The LSB facilities + $remote_fs, $network, $named, + $portmap, $time are supported and will be turned into dependencies + on specific native systemd targets. See + systemd.special7 for + more details. Note that compatibility is quite comprehensive but not 100%, for more details see Incompatibilities with SysV. SysV runlevels have corresponding systemd targets - (runlevelX.target). - The wrapper unit that is generated will be wanted by those targets - which correspond to runlevels for which the script is - enabled. + (runlevelX.target). The wrapper unit that is generated + will be wanted by those targets which correspond to runlevels for which the script is enabled. - systemd does not support SysV scripts as - part of early boot, so all wrapper units are ordered after - basic.target. + systemd does not support SysV scripts as part of early boot, so all wrapper + units are ordered after basic.target. systemd-sysv-generator implements systemd.generator7. diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c index ea5f47321c2..632f4a1aac7 100644 --- a/src/sysv-generator/sysv-generator.c +++ b/src/sysv-generator/sysv-generator.c @@ -28,6 +28,9 @@ #include "strv.h" #include "unit-name.h" +/* 🚨 Note: this generator is deprecated! Please do not add new features! Instead, please port remaining SysV + * scripts over to native unit files! Thank you! 🚨 */ + static const struct { const char *path; const char *target;