mdsplus
mdsplus copied to clipboard
minor quality of life suggestions for data server installs / builds
Affiliation DIII-D
Platform Linux
Description
A few quality of life suggestions regarding installing/building a mdsplus data server.
Suggestion 1
- The stock
/etc/xinetd.d/mdsipfile references a logfile directory/var/log/mdsplus/mdsipd, but it doesn't create it and I end up doing amkdirandchmod -R 775every server build (after the yum/rpm kit install). I might have asked in ages past, but... was there a specific reason why mdsplus doesn't create it's own log sub-dirs?
Suggestion 2
- The stock
/usr/local/mdsplus/bin/mdsipdfiles uses$2/access 2>> $2/errorsto direct output to logfiles, and I end up changing that to$2/$1.access 2>> $2/$1.errorsfor (most of) my servers builds so that there's one logfile per service/port. Makes it easier associating traffic/output with the relevant service/port it came through. Thoughts on making that official?
@mwinkel-dev am I correct in thinking that these are relatively straightforward modifications?
-
My best guess would be because the xinetd packages come disabled by default, so the thought might've been "you make the directory when you enable them". Regardless, that's a pretty easy change to make. Note: We recommend replacing the xinetd scripts with the new systemd scripts that are packaged, if you can
-
Hmm, I'm worried about changing a standard path, but I do agree that it's better with the $1 in there. One reason we haven't run into this is because we use systemd to manage all our mdsip services. For purpose-built mdsip services, you get their logs with journalctl, and then for the general xinetd/systemd socket mdsip service running on port 8000, you check the single access/errors files. I'm going to hold off on this change for right now, but I'll bring it up at the next mdsplus developer meeting.