| 1 | [Unit] |
| 2 | Description=RPC bind portmap service |
| 3 | Documentation=man:rpcbind(8) |
| 4 | DefaultDependencies=no |
| 5 | RequiresMountsFor=/run/rpcbind |
| 6 | |
| 7 | # Make sure we use the IP addresses listed for |
| 8 | # rpcbind.socket, no matter how this unit is started. |
| 9 | Requires=rpcbind.socket |
| 10 | After=systemd-tmpfiles-setup.service |
| 11 | Wants=remote-fs-pre.target rpcbind.target |
| 12 | Before=remote-fs-pre.target rpcbind.target |
| 13 | |
| 14 | [Service] |
| 15 | Environment="OPTIONS=-w" |
| 16 | ExecStart=/usr/sbin/rpcbind -f $OPTIONS |
| 17 | EnvironmentFile=-/etc/rpcbind.conf |
| 18 | EnvironmentFile=-/etc/default/rpcbind |
| 19 | Type=notify |
| 20 | KillMode=process |
| 21 | Restart=on-failure |
| 22 | |
| 23 | [Install] |
| 24 | Also=rpcbind.socket |
| 25 | WantedBy=multi-user.target |