1 file changed, 22 insertions(+), 2 deletions(-)
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
-index ed3309f..c407f4a 100644
+index 6dc8835..6cc2cd5 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -41,6 +41,7 @@
int sysv_start_priority;
char *pid_file;
char **before;
-@@ -180,6 +188,8 @@ static int generate_unit_file(SysvStub *s) {
+@@ -189,6 +197,8 @@ static int generate_unit_file(SysvStub *s) {
"Description=%s\n",
s->path, s->description);
if (!isempty(before))
fprintf(f, "Before=%s\n", before);
if (!isempty(after))
-@@ -193,11 +203,12 @@ static int generate_unit_file(SysvStub *s) {
+@@ -202,11 +212,12 @@ static int generate_unit_file(SysvStub *s) {
"\n[Service]\n"
"Type=forking\n"
"Restart=no\n"
yes_no(!s->pid_file));
if (s->pid_file)
-@@ -701,6 +712,11 @@ static int fix_order(SysvStub *s, Hashmap *all_services) {
+@@ -710,6 +721,11 @@ static int fix_order(SysvStub *s, Hashmap *all_services) {
if (s->has_lsb && other->has_lsb)
continue;
if (other->sysv_start_priority < s->sysv_start_priority) {
r = strv_extend(&s->after, other->name);
if (r < 0)
-@@ -852,8 +868,12 @@ static int set_dependencies_from_rcnd(LookupPaths lp, Hashmap *all_services) {
+@@ -861,8 +877,12 @@ static int set_dependencies_from_rcnd(LookupPaths lp, Hashmap *all_services) {
}
if (de->d_name[0] == 'S') {
1 file changed, 27 insertions(+), 1 deletion(-)
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
-index c407f4a..b7cb94d 100644
+index 6cc2cd5..bd2ee1f 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
-@@ -736,6 +736,25 @@ static int fix_order(SysvStub *s, Hashmap *all_services) {
+@@ -745,6 +745,25 @@ static int fix_order(SysvStub *s, Hashmap *all_services) {
return 0;
}
static int enumerate_sysv(LookupPaths lp, Hashmap *all_services) {
char **path;
-@@ -776,6 +795,12 @@ static int enumerate_sysv(LookupPaths lp, Hashmap *all_services) {
+@@ -785,6 +804,12 @@ static int enumerate_sysv(LookupPaths lp, Hashmap *all_services) {
if (hashmap_contains(all_services, name))
continue;
service = new0(SysvStub, 1);
if (!service)
return log_oom();
-@@ -863,7 +888,8 @@ static int set_dependencies_from_rcnd(LookupPaths lp, Hashmap *all_services) {
+@@ -872,7 +897,8 @@ static int set_dependencies_from_rcnd(LookupPaths lp, Hashmap *all_services) {
service = hashmap_get(all_services, name);
if (!service){
#define SPECIAL_INITRD_FS_TARGET "initrd-fs.target"
#define SPECIAL_INITRD_ROOT_FS_TARGET "initrd-root-fs.target"
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
-index b7cb94d..95c91e9 100644
+index bd2ee1f..4b87a78 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
@@ -72,9 +72,6 @@ static const struct {
typedef struct SysvStub {
char *name;
char *path;
-@@ -189,7 +186,7 @@ static int generate_unit_file(SysvStub *s) {
+@@ -198,7 +195,7 @@ static int generate_unit_file(SysvStub *s) {
s->path, s->description);
if (s->sysinit)
if (!isempty(before))
fprintf(f, "Before=%s\n", before);
if (!isempty(after))
-@@ -267,7 +264,7 @@ static int sysv_translate_facility(const char *name, const char *filename, char
+@@ -276,7 +273,7 @@ static int sysv_translate_facility(const char *name, const char *filename, char
static const char * const table[] = {
/* LSB defined facilities */
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
-index 95c91e9..84ccbf6 100644
+index 4b87a78..eb50179 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
-@@ -269,8 +269,15 @@ static int sysv_translate_facility(const char *name, const char *filename, char
+@@ -278,8 +278,15 @@ static int sysv_translate_facility(const char *name, const char *filename, char
"named", SPECIAL_NSS_LOOKUP_TARGET,
"portmap", SPECIAL_RPCBIND_TARGET,
"remote_fs", SPECIAL_REMOTE_FS_TARGET,
sysv-generator-Avoid-wrong-dependencies-for-failing-.patch
journal-Fix-syslog-forwarding-without-CAP_SYS_ADMIN.patch
sysv-generator-Handle-.sh-suffixes-when-translating-.patch
+sysv-generator-Replace-Provides-symlinks-with-real-u.patch
util-Add-some-missing-hidden_file-suffixes.patch
## Debian specific patches
Don-t-enable-audit-by-default.patch
Accept-mountall-specific-fstab-options.patch
Fix-usr-remount-failure-for-split-usr.patch
-sysv-generator-Replace-Provides-symlinks-with-real-u.patch
util-Add-hidden-suffixes-for-ucf.patch
1 file changed, 9 insertions(+)
diff --git a/src/sysv-generator/sysv-generator.c b/src/sysv-generator/sysv-generator.c
-index 84ccbf6..eb50179 100644
+index ed3309f..6dc8835 100644
--- a/src/sysv-generator/sysv-generator.c
+++ b/src/sysv-generator/sysv-generator.c
-@@ -152,6 +152,7 @@ static int generate_unit_file(SysvStub *s) {
+@@ -147,6 +147,7 @@ static int generate_unit_file(SysvStub *s) {
_cleanup_free_ char *wants = NULL;
_cleanup_free_ char *conflicts = NULL;
int r;
before = strv_join(s->before, " ");
if (!before)
-@@ -173,6 +174,14 @@ static int generate_unit_file(SysvStub *s) {
+@@ -168,6 +169,14 @@ static int generate_unit_file(SysvStub *s) {
if (!unit)
return log_oom();