[systemd-commits] src/service.c TODO

Lennart Poettering lennart at kemper.freedesktop.org
Tue Mar 8 09:41:34 PST 2011


 TODO          |    6 ++----
 src/service.c |    2 +-
 2 files changed, 3 insertions(+), 5 deletions(-)

New commits:
commit 85211309f0e14d7f804e1367e838291f39f6cec0
Author: Lennart Poettering <lennart at poettering.net>
Date:   Tue Mar 8 18:41:23 2011 +0100

    service: prefix description with LSB only if script has LSB header, use 'SysV:' otherwise

diff --git a/TODO b/TODO
index cad9774..63a5faa 100644
--- a/TODO
+++ b/TODO
@@ -16,9 +16,9 @@ F15:
 
 * mount /dev/.run and /var/run as bind mounts
 
-* Make use of UnknownInterface, UnknownObject
+* Make use of UnknownInterface
 
-* verify SYSTEMD_IGNORE_DEPENDENCIES support in /etc/rc.d/functions
+* support chkconfig without forwarding to systemctl to facilitate upgrades
 
 Features:
 
@@ -26,8 +26,6 @@ Features:
 
 * consider services with any kind of link in /etc/systemd/system enabled
 
-* introduce "x-systemd-automount" as alternative to the "comment=systemd.automount" mount option
-
 * show failure error string in "systemctl status"
 
 * make sure timeouts are applied to Type=oneshot services.
diff --git a/src/service.c b/src/service.c
index 017b546..465e1a7 100644
--- a/src/service.c
+++ b/src/service.c
@@ -835,7 +835,7 @@ static int service_load_sysv_path(Service *s, const char *path) {
         if (description) {
                 char *d;
 
-                if (!(d = strappend("LSB: ", description))) {
+                if (!(d = strappend(s->sysv_has_lsb ? "LSB: " : "SysV: ", description))) {
                         r = -ENOMEM;
                         goto finish;
                 }



More information about the systemd-commits mailing list