Move Unix domain sockets to /var/run.
According to FHS, /var/run is the right place for them. Signed-off-by: Miroslav Lichvar <mlichvar@redhat.com>master
parent
09fdc45220
commit
ecbbf4cdb1
|
@ -331,7 +331,7 @@ static int run_pmc(int wait_sync, int *utc_offset)
|
|||
TIME_PROPERTIES_DATA_SET
|
||||
};
|
||||
|
||||
pmc = pmc_create(TRANS_UDS, "/tmp/phc2sys", 0, 0, 0);
|
||||
pmc = pmc_create(TRANS_UDS, "/var/run/phc2sys", 0, 0, 0);
|
||||
if (!pmc) {
|
||||
fprintf(stderr, "failed to create pmc\n");
|
||||
return -1;
|
||||
|
|
2
pmc.8
2
pmc.8
|
@ -64,7 +64,7 @@ Specify the boundary hops value in sent messages. The default is 1.
|
|||
Specify the domain number in sent messages. The default is 0.
|
||||
.TP
|
||||
.BI \-i " interface"
|
||||
Specify the network interface. The default is /tmp/pmc for the Unix Domain
|
||||
Specify the network interface. The default is /var/run/pmc for the Unix Domain
|
||||
Socket transport and eth0 for the other transports.
|
||||
.TP
|
||||
.BI \-t " transport-specific-field"
|
||||
|
|
4
pmc.c
4
pmc.c
|
@ -392,7 +392,7 @@ static void usage(char *progname)
|
|||
" -d [num] domain number, default 0\n"
|
||||
" -h prints this message and exits\n"
|
||||
" -i [dev] interface device to use, default 'eth0'\n"
|
||||
" for network and '/tmp/pmc' for UDS.\n"
|
||||
" for network and '/var/run/pmc' for UDS.\n"
|
||||
" -t [hex] transport specific field, default 0x0\n"
|
||||
" -v prints the software version and exits\n"
|
||||
"\n",
|
||||
|
@ -456,7 +456,7 @@ int main(int argc, char *argv[])
|
|||
}
|
||||
|
||||
if (!iface_name) {
|
||||
iface_name = transport_type == TRANS_UDS ? "/tmp/pmc" : "eth0";
|
||||
iface_name = transport_type == TRANS_UDS ? "/var/run/pmc" : "eth0";
|
||||
}
|
||||
|
||||
print_set_progname(progname);
|
||||
|
|
Loading…
Reference in New Issue