rpcbind/0027-socket-before-service.patch

38 lines
1.1 KiB
Diff
Raw Normal View History

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