artdaq should create logfile subdirectories which are group writeable
From my work on Issue #23477, I've noticed that when artdaq creates a subdirectory of the base log directory, that subdirectory only has write permissions set for the user, and not the user's group. E.g., when I logged into mu2edaq11 and did the following:
source /home/jcfree/artdaq-demo_issue22244/setupARTDAQDEMO # Specific installation not important mkdir -p -m 0775 /tmp/issue23477_logs export ARTDAQ_LOG_ROOT=/tmp/issue23477_logs boardreader -c "id: 14100 commanderPluginType: xmlrpc rank: 0 application_name: component01 partition_number: 4" &
then if I listed the contents of /tmp/issue23477_logs I got the following:
total 0 drwxr-xr-x 2 jcfree mu2e 65 Oct 29 13:39 component01-mu2edaq11-14100
...i.e., the directory containing the logfile isn't group writeable. In the spirit of Issue #23477, we should make this group-writeable.
#3 Updated by John Freeman 11 months ago
- % Done changed from 0 to 100
- Status changed from New to Resolved
I installed an artdaq-demo area with the --develop option called /home/jcfree/artdaq-demo_issue23491, and used it for run 3053 (/home/jcfree/run_records/3053). I used a special output log directory, /tmp/issue23491_logs. Looking on mu2edaq13, these two subdirectories were created, given that I was running on partition 5:
drwxr-xr-x 2 jcfree mu2e 69 Oct 30 16:36 EventBuilder1-mu2edaq13-15102 drwxr-xr-x 2 jcfree mu2e 67 Oct 30 16:36 DataLogger1-mu2edaq13-15103
Notice, of course, that they're not group writeable. I then switched over to artdaq-core's feature/23491_CreateLogDirectoryGroupWriteable, as well as partition 6, and for run 3054 the following subdirectories got created on mu2edaq13:
drwxrwxr-x 2 jcfree mu2e 69 Oct 30 16:40 EventBuilder1-mu2edaq13-16102 drwxrwxr-x 2 jcfree mu2e 67 Oct 30 16:40 DataLogger1-mu2edaq13-16103
...where the subdirectories are group-writeable. So I consider this issue reviewed.