diff mbox

Fix boot dependency in systemd service file

Message ID 20161220115856.22467-1-y.leprince@fz-juelich.de (mailing list archive)
State New, archived
Headers show

Commit Message

Yann Leprince Dec. 20, 2016, 11:58 a.m. UTC
From: Yann Leprince <yann.leprince@ylep.fr>

This fix ensures that a separate /var partition will be mounted before
rpcbind tries to write its status to /var/run.

Signed-off-by: Yann Leprince <yann.leprince@ylep.fr>
---
 systemd/rpcbind.service.in | 1 +
 1 file changed, 1 insertion(+)

--
2.11.0



------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------
Forschungszentrum Juelich GmbH
52425 Juelich
Sitz der Gesellschaft: Juelich
Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
Prof. Dr. Sebastian M. Schmidt
------------------------------------------------------------------------------------------------
------------------------------------------------------------------------------------------------

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Comments

Steve Dickson Dec. 21, 2016, 7:39 p.m. UTC | #1
On 12/20/2016 06:58 AM, Yann Leprince wrote:
> From: Yann Leprince <yann.leprince@ylep.fr>
> 
> This fix ensures that a separate /var partition will be mounted before
> rpcbind tries to write its status to /var/run.
> 
> Signed-off-by: Yann Leprince <yann.leprince@ylep.fr>
Committed... thank you!

steved.
> ---
>  systemd/rpcbind.service.in | 1 +
>  1 file changed, 1 insertion(+)
> 
> diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
> index c173b83..f8cfa9f 100644
> --- a/systemd/rpcbind.service.in
> +++ b/systemd/rpcbind.service.in
> @@ -2,6 +2,7 @@
>  Description=RPC Bind
>  Documentation=man:rpcbind(8)
>  DefaultDependencies=no
> +RequiresMountsFor=@statedir@
> 
>  # Make sure we use the IP addresses listed for
>  # rpcbind.socket, no matter how this unit is started.
> --
> 2.11.0
> 
> 
> 
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> Forschungszentrum Juelich GmbH
> 52425 Juelich
> Sitz der Gesellschaft: Juelich
> Eingetragen im Handelsregister des Amtsgerichts Dueren Nr. HR B 3498
> Vorsitzender des Aufsichtsrats: MinDir Dr. Karl Eugen Huthmacher
> Geschaeftsfuehrung: Prof. Dr.-Ing. Wolfgang Marquardt (Vorsitzender),
> Karsten Beneke (stellv. Vorsitzender), Prof. Dr.-Ing. Harald Bolt,
> Prof. Dr. Sebastian M. Schmidt
> ------------------------------------------------------------------------------------------------
> ------------------------------------------------------------------------------------------------
> 
--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

diff --git a/systemd/rpcbind.service.in b/systemd/rpcbind.service.in
index c173b83..f8cfa9f 100644
--- a/systemd/rpcbind.service.in
+++ b/systemd/rpcbind.service.in
@@ -2,6 +2,7 @@ 
 Description=RPC Bind
 Documentation=man:rpcbind(8)
 DefaultDependencies=no
+RequiresMountsFor=@statedir@

 # Make sure we use the IP addresses listed for
 # rpcbind.socket, no matter how this unit is started.