rpcbind/0001-systemd-unit-files.patch
OBS User mrdocs 60e0bc9831 Accepting request 577872 from home:avindra
- Update to 0.2.4
- cleanup with spec-cleaner
- don't ship NEWS or ChangeLog, these are not maintained
- rebase 0001-systemd-unit-files.patch
- remove upstreamed patches
  * drop 0002-handle_reply-Don-t-use-the-xp_auth-pointer-directly.patch
  * drop 0003-Delete-the-unix-socket-only-if-we-have-created-it.patch
  * drop 0004-Fix-memory-corruption-in-PMAP_CALLIT-code.patch
  * drop 0005-security.c-removed-warning.patch
  * drop 0006-don-t-use-svc_fdset.patch
  * drop 0012-Move-default-state-dir-to-a-subdirectory-of-var-run.patch

OBS-URL: https://build.opensuse.org/request/show/577872
OBS-URL: https://build.opensuse.org/package/show/network/rpcbind?expand=0&rev=76
2018-02-20 02:09:11 +00:00

62 lines
1.4 KiB
Diff

Add systemd unit files
Signed-off-by: Thorsten Kukuk <kukuk@suse.de>
--- a/Makefile.am
+++ b/Makefile.am 2014/12/10 13:27:31
@@ -51,6 +51,10 @@
rpcbind_LDADD += $(SYSTEMD_LIBS)
+systemd/rpcbind.service: systemd/rpcbind.service.in Makefile
+ sed -e 's,@bindir\@,$(bindir),g' \
+ < $< > $@ || rm $@
+
systemdsystemunit_DATA = \
systemd/rpcbind.service \
systemd/rpcbind.socket
--- a/systemd/.gitignore
+++ b/systemd/.gitignore 2014/12/10 13:27:31
@@ -0,0 +1 @@
+rpcbind.service
--- a/systemd/rpcbind.service.in
+++ b/systemd/rpcbind.service.in 2014/12/10 13:27:31
@@ -0,0 +1,16 @@
+[Unit]
+Description=RPC Bind
+Documentation=man:rpcbind(8)
+DefaultDependencies=no
+Requires=rpcbind.socket
+Wants=var-run.mount
+After=var-run.mount
+
+[Service]
+Type=notify
+EnvironmentFile=-/etc/sysconfig/rpcbind
+ExecStart=@bindir@/rpcbind $RPCBIND_OPTIONS -w -f
+
+[Install]
+WantedBy=multi-user.target
+Also=rpcbind.socket
--- a/systemd/rpcbind.socket
+++ b/systemd/rpcbind.socket 2014/12/10 13:27:58
@@ -0,0 +1,18 @@
+[Unit]
+Description=RPCbind Server Activation Socket
+DefaultDependencies=no
+Wants=rpcbind.target
+Before=rpcbind.target
+
+[Socket]
+ListenStream=/run/rpcbind.sock
+
+# RPC netconfig can't handle ipv6/ipv4 dual sockets
+BindIPv6Only=ipv6-only
+ListenStream=0.0.0.0:111
+ListenDatagram=0.0.0.0:111
+ListenStream=[::]:111
+ListenDatagram=[::]:111
+
+[Install]
+WantedBy=sockets.target