rpcbind/0027-socket-before-service.patch
Sascha Peilicke 467a98bad0 Accepting request 228296 from home:WernerFink:branches:network
- Add 0027-socket-before-service.patch to make sure that always
  the socket is up before the service.  This will make sure that
  rpcbind.target will not only cause the socket but also the
  rpcbind.service (bnc#860246)
- Beside this ingnore exit state 2 in case of shutdown (bnc#860246)

OBS-URL: https://build.opensuse.org/request/show/228296
OBS-URL: https://build.opensuse.org/package/show/network/rpcbind?expand=0&rev=42
2014-04-01 08:31:09 +00:00

38 lines
1.1 KiB
Diff

Ignore exit state of two and also be sure that rpcbind.service will
trigger rpcbind.socket before its own start which the fulfill rpcbind.target
References: bnc#870158, bnc#860246
Signed-off-by: Werner Fink <werner@suse.de>
---
systemd/rpcbind.service.in | 3 +++
systemd/rpcbind.socket | 1 +
2 files changed, 4 insertions(+)
--- rpcbind-0.2.1_rc4/systemd/rpcbind.service.in
+++ rpcbind-0.2.1_rc4/systemd/rpcbind.service.in 2014-03-31 10:29:29.262735423 +0000
@@ -1,11 +1,14 @@
[Unit]
Description=RPC Bind
+Documentation=man:rpcbind(8)
DefaultDependencies=no
+Requires=rpcbind.socket
[Service]
Type=notify
EnvironmentFile=-/etc/sysconfig/rpcbind
ExecStart=@bindir@/rpcbind $RPCBIND_OPTIONS -w -f
+SuccessExitStatus=2
[Install]
WantedBy=multi-user.target
--- rpcbind-0.2.1_rc4/systemd/rpcbind.socket
+++ rpcbind-0.2.1_rc4/systemd/rpcbind.socket 2014-03-31 10:30:12.799480612 +0000
@@ -1,5 +1,6 @@
[Unit]
Description=RPCbind Server Activation Socket
+Documentation=man:rpcbind(8)
DefaultDependencies=no
Wants=rpcbind.target
Before=rpcbind.target