X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fservice.c;h=e7a9e7c586c15c0f106f0cd4d62c583d983043cd;hb=e03ae6615a1fe9a2aee854d00c3fc7397a06983d;hp=465e1a7a58ecc4bfb97519eec167c309f4d55ad4;hpb=85211309f0e14d7f804e1367e838291f39f6cec0;p=elogind.git diff --git a/src/service.c b/src/service.c index 465e1a7a5..e7a9e7c58 100644 --- a/src/service.c +++ b/src/service.c @@ -275,7 +275,13 @@ static int sysv_translate_facility(const char *name, const char *filename, char static const char * const table[] = { /* LSB defined facilities */ "local_fs", SPECIAL_LOCAL_FS_TARGET, +#ifndef TARGET_MANDRIVA + /* Due to unfortunate name selection in Mandriva, + * $network is provided by network-up which is ordered + * after network which actually starts interfaces. + * To break the loop, just ignore it */ "network", SPECIAL_NETWORK_TARGET, +#endif "named", SPECIAL_NSS_LOOKUP_TARGET, "portmap", SPECIAL_RPCBIND_TARGET, "remote_fs", SPECIAL_REMOTE_FS_TARGET, @@ -835,7 +841,7 @@ static int service_load_sysv_path(Service *s, const char *path) { if (description) { char *d; - if (!(d = strappend(s->sysv_has_lsb ? "LSB: " : "SysV: ", description))) { + if (!(d = strappend(s->sysv_has_lsb ? "LSB: " : "SYSV: ", description))) { r = -ENOMEM; goto finish; } @@ -1653,7 +1659,7 @@ static int service_spawn( } if (set_notify_socket) - if (asprintf(our_env + n_env++, "NOTIFY_SOCKET=@%s", s->meta.manager->notify_socket) < 0) { + if (asprintf(our_env + n_env++, "NOTIFY_SOCKET=%s", s->meta.manager->notify_socket) < 0) { r = -ENOMEM; goto fail; }