Inspired by Ubuntu package.
Signed-off-by: Andreas Oberritter <obi@opendreambox.org>
[Unit]
-Description=RPC Bind Service
+Description=RPC bind portmap service
+After=systemd-tmpfiles-setup.service
+Wants=remote-fs-pre.target
+Before=remote-fs-pre.target
+DefaultDependencies=no
[Service]
Type=forking
EnvironmentFile=-@SYSCONFDIR@/rpcbind.conf
ExecStart=@SBINDIR@/rpcbind $RPCBIND_OPTS
-SuccessExitStatus=2
+KillMode=process
+Restart=on-failure
[Install]
+WantedBy=sysinit.target
+Alias=portmap.service