diff mbox series

package/owfs: delay sysvinit start until after network and avahi

Message ID 20190423113515.6482-1-arnout@mind.be
State Accepted
Commit efc6ccbddc1737a534b2cb54f72bb9c2b2f58461
Headers show
Series package/owfs: delay sysvinit start until after network and avahi | expand

Commit Message

Arnout Vandecappelle April 23, 2019, 11:35 a.m. UTC
In its default configuration, owserver opens a TCP socket on the 'lo'
interface. However, in some situations, the 'lo' interface may not yet
be up until S40network is started. This causes owserver not to start its
TCP socket, which makes it impossible for the owfs client to connect to
it.

In addition, owserver may have avahi integration.

Therefore, delay the start of owserver and owfs until after S40network
and S50avahi-daemon.

Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>
---
 package/owfs/{S25owserver => S55owserver} | 0
 package/owfs/{S30owfs => S60owfs}         | 0
 package/owfs/owfs.mk                      | 8 ++++----
 3 files changed, 4 insertions(+), 4 deletions(-)
 rename package/owfs/{S25owserver => S55owserver} (100%)
 rename package/owfs/{S30owfs => S60owfs} (100%)

Comments

Peter Korsgaard May 6, 2019, 7:29 p.m. UTC | #1
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:

 > In its default configuration, owserver opens a TCP socket on the 'lo'
 > interface. However, in some situations, the 'lo' interface may not yet
 > be up until S40network is started. This causes owserver not to start its
 > TCP socket, which makes it impossible for the owfs client to connect to
 > it.

 > In addition, owserver may have avahi integration.

 > Therefore, delay the start of owserver and owfs until after S40network
 > and S50avahi-daemon.

 > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Committed, thanks.
Peter Korsgaard May 10, 2019, 10:14 a.m. UTC | #2
>>>>> "Arnout" == Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be> writes:

 > In its default configuration, owserver opens a TCP socket on the 'lo'
 > interface. However, in some situations, the 'lo' interface may not yet
 > be up until S40network is started. This causes owserver not to start its
 > TCP socket, which makes it impossible for the owfs client to connect to
 > it.

 > In addition, owserver may have avahi integration.

 > Therefore, delay the start of owserver and owfs until after S40network
 > and S50avahi-daemon.

 > Signed-off-by: Arnout Vandecappelle (Essensium/Mind) <arnout@mind.be>

Committed to 2019.02.x, thanks.
diff mbox series

Patch

diff --git a/package/owfs/S25owserver b/package/owfs/S55owserver
similarity index 100%
rename from package/owfs/S25owserver
rename to package/owfs/S55owserver
diff --git a/package/owfs/S30owfs b/package/owfs/S60owfs
similarity index 100%
rename from package/owfs/S30owfs
rename to package/owfs/S60owfs
diff --git a/package/owfs/owfs.mk b/package/owfs/owfs.mk
index cd1c2dba6d..fccc2efa58 100644
--- a/package/owfs/owfs.mk
+++ b/package/owfs/owfs.mk
@@ -31,8 +31,8 @@  OWFS_CONF_OPTS += \
 	--with-fuseinclude=$(STAGING_DIR)/usr/include \
 	--with-fuselib=$(STAGING_DIR)/usr/lib
 define OWFS_INSTALL_FUSE_INIT_SYSV
-	$(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S30owfs \
-		$(TARGET_DIR)/etc/init.d/S30owfs
+	$(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S60owfs \
+		$(TARGET_DIR)/etc/init.d/S60owfs
 endef
 define OWFS_CREATE_MOUNTPOINT
 	mkdir -p $(TARGET_DIR)/dev/1wire
@@ -102,8 +102,8 @@  endif
 OWFS_MAKE = $(MAKE) $(OWFS_EXTRA_MAKE_OPTS)
 
 define OWFS_INSTALL_INIT_SYSV
-	$(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S25owserver \
-		$(TARGET_DIR)/etc/init.d/S25owserver
+	$(INSTALL) -D -m 0755 $(OWFS_PKGDIR)S55owserver \
+		$(TARGET_DIR)/etc/init.d/S55owserver
 	$(OWFS_INSTALL_FUSE_INIT_SYSV)
 endef