Do the same as for the service unit, otherwise the installed socket unit
does not make much sense without additional configuration.

Signed-off-by: Roland Hieber <[email protected]>
---
 rules/gpsd.make | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/rules/gpsd.make b/rules/gpsd.make
index 02328d7ca5e8..f75caa5b4bbd 100644
--- a/rules/gpsd.make
+++ b/rules/gpsd.make
@@ -170,6 +170,8 @@ ifdef PTXCONF_GPSD_SYSTEMD_UNIT
                /usr/lib/systemd/system/multi-user.target.wants/gpsd.service)
        @$(call install_alternative, gpsd, 0, 0, 644, \
                /usr/lib/systemd/system/gpsd.socket)
+       @$(call install_link, gpsd, ../gpsd.socket, \
+               /usr/lib/systemd/system/sockets.target.wants/gpsd.socket)
 ifdef PTXCONF_GPSD_GPSCTL
        @$(call install_alternative, gpsd, 0, 0, 644, \
                /usr/lib/systemd/system/[email protected])
-- 
2.27.0


_______________________________________________
ptxdist mailing list
[email protected]
To unsubscribe, send a mail with subject "unsubscribe" to 
[email protected]

Reply via email to