Skip to content

Commit

Permalink
move rpcbind.sock to /run when built with systemd support
Browse files Browse the repository at this point in the history
Signed-off-by: Tom Gundersen <[email protected]>
  • Loading branch information
teg committed Apr 12, 2012
1 parent 5b3775a commit 200af0c
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/rpcbind.c
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,12 @@ char *rpcbinduser = NULL;
/* who to suid to if -s is given */
#define RUN_AS "daemon"

#ifdef SYSTEMD
#define RPCBINDDLOCK "/run/rpcbind.lock"
#define _PATH_RPCBINDSOCK "/run/rpcbind.sock"
#else
#define RPCBINDDLOCK "/var/run/rpcbind.lock"
#endif

int runasdaemon = 0;
int insecure = 0;
Expand Down
2 changes: 1 addition & 1 deletion systemd/rpcbind.socket
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ Wants=rpcbind.target
Before=rpcbind.target

[Socket]
ListenStream=/var/run/rpcbind.sock
ListenStream=/run/rpcbind.sock
ListenStream=111
ListenDatagram=111

Expand Down

0 comments on commit 200af0c

Please sign in to comment.