Displaying 1 result from an estimated 1 matches for "statefn".
Did you mean:
statef
2007 May 18
1
i'm confused
...n creates the socket as follows -
snprintf(sockname, sizeof(sockname), "%s/%s-%s",
dflt_statepath(), prog, port);
which is fine, but if i'm right upsd via server/conf.c in function
upsconf_add is trying set the name of the socket to be opened as -
snprintf(statefn, sizeof(statefn), "%s",
tmp->upsname);
so it error's as above. If i call the entry in ups.conf 'apcsmart-ttyS0'
then it'll work because upsd will use the upsname, but from looking at
the docs, examples and so on it appears i can use any...