adjust requires in other units - explicit owserver dependency is not needed,
as owserver will be socket-activated
---
 src/scripts/systemd/Makefile.am         | 3 ++-
 src/scripts/systemd/owfs.service.in     | 2 --
 src/scripts/systemd/owftpd.service.in   | 2 --
 src/scripts/systemd/owhttpd.service.in  | 2 --
 src/scripts/systemd/owserver.service.in | 1 +
 src/scripts/systemd/owserver.socket.in  | 9 +++++++++
 6 files changed, 12 insertions(+), 7 deletions(-)
 create mode 100644 src/scripts/systemd/owserver.socket.in

diff --git a/src/scripts/systemd/Makefile.am b/src/scripts/systemd/Makefile.am
index 0b465a9..98354a3 100644
--- a/src/scripts/systemd/Makefile.am
+++ b/src/scripts/systemd/Makefile.am
@@ -4,7 +4,8 @@ systemdsystemunit_DATA = \
        owfs.service \
        owftpd.service \
        owhttpd.service \
-       owserver.service
+       owserver.service \
+       owserver.socket
 
 $(systemdsystemunit_DATA): Makefile
        rm -f $@ $@.tmp
diff --git a/src/scripts/systemd/owfs.service.in 
b/src/scripts/systemd/owfs.service.in
index 76af24b..3dbf496 100644
--- a/src/scripts/systemd/owfs.service.in
+++ b/src/scripts/systemd/owfs.service.in
@@ -1,8 +1,6 @@
 [Unit]
 Description=1-wire filesystem FUSE mount
 Documentation=man:owfs(1)
-Requires=owserver.service
-After=owserver.service
 
 [Service]
 Type=forking
diff --git a/src/scripts/systemd/owftpd.service.in 
b/src/scripts/systemd/owftpd.service.in
index fb9a774..242e0d3 100644
--- a/src/scripts/systemd/owftpd.service.in
+++ b/src/scripts/systemd/owftpd.service.in
@@ -1,8 +1,6 @@
 [Unit]
 Description=Anonymous FTP server for 1-wire access
 Documentation=man:owftpd(1)
-Requires=owserver.service
-After=owserver.service
 
 [Service]
 ExecStart=@bindir@/owftpd --foreground --server=127.0.0.1
diff --git a/src/scripts/systemd/owhttpd.service.in 
b/src/scripts/systemd/owhttpd.service.in
index 9c407cf..116ce2a 100644
--- a/src/scripts/systemd/owhttpd.service.in
+++ b/src/scripts/systemd/owhttpd.service.in
@@ -1,8 +1,6 @@
 [Unit]
 Description=Tiny webserver for 1-wire control
 Documentation=man:owhttpd(1)
-Requires=owserver.service
-After=owserver.service
 After=avahi-daemon.service
 
 [Service]
diff --git a/src/scripts/systemd/owserver.service.in 
b/src/scripts/systemd/owserver.service.in
index 435f675..9e6f691 100644
--- a/src/scripts/systemd/owserver.service.in
+++ b/src/scripts/systemd/owserver.service.in
@@ -10,3 +10,4 @@ Restart=on-failure
 
 [Install]
 WantedBy=multi-user.target
+Also=owserver.socket
diff --git a/src/scripts/systemd/owserver.socket.in 
b/src/scripts/systemd/owserver.socket.in
new file mode 100644
index 0000000..b954d6c
--- /dev/null
+++ b/src/scripts/systemd/owserver.socket.in
@@ -0,0 +1,9 @@
+[Unit]
+Description=Listening socket for owserver
+Documentation=man:owserver(1)
+
+[Socket]
+ListenStream=4304
+
+[Install]
+WantedBy=sockets.target
-- 
1.9.3


------------------------------------------------------------------------------
Open source business process management suite built on Java and Eclipse
Turn processes into business applications with Bonita BPM Community Edition
Quickly connect people, data, and systems into organized workflows
Winner of BOSSIE, CODIE, OW2 and Gartner awards
http://p.sf.net/sfu/Bonitasoft
_______________________________________________
Owfs-developers mailing list
Owfs-developers@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to