The Canadian supercomputers use a local RHEL based install with most of the software coming from easybuild built modules on top of a gentoo prefix install on a CVMFS mount.
In this context I ran into two issues with the systemd adapter. The first is the script wrapper calls
hostname -A
which fails as the -A option is only supported by the debian hostname program. Stacks (such as gentoo) that use the net tools program, core tools program, etc. don’t support this.
The second issues is that the systemd launched VNC template script runs in the base systemd environment. This means it doesn’t have our full PATH (i.e., one extended to all our software on our CVMFS mount) and it isn’t possibly to set it in the hooks in time as it runs a bunch of commands before calling the first hook.
To fix the first I hacked the script to remove the -A flag (which it turned out we didn’t want anyway, as the real name we wanted was the hostname and not the reverse DNS names of the configured interfaces), and to fix the second I hacked the #!/bin/bash shell line to be `#!/bin/bash -l so it also sources the profile scripts and sets up a full environment for starting the desktop.
I would prefer not to be running a customized ood_core though, so I am wondering if there is any sort of patch I can put together around this that would get accepted or something else I can do to make this work without modifying ood_core?
Thanks! Tyson