Hello,
We are encountering problems with the NFS boot scripts. We already used this on another installation of Qlustar. It was working fine, but on our new install, it seems that the scripts are not executing at boot anymore. Here is the procedure we followed: 1. We created a script in /etc/qlustar/common/rc.boot 2. We made the script executable using chmod +x
If I look on the node, the script is visible in the NFS folder /etc/qlustar/common/rc.boot. If I execute it manually, it has the behaviour I'm expecting from it.
Do you have any idea of why the NFS scripts could have some problems in executing at boot time? I was also wondering if there would be a way to start a service automatically at boot on a node?
Thanks already for your help.
"S" == stephanie kerckhof stephanie.kerckhof@ec.europa.eu writes:
Hi
S> Hello, We are encountering problems with the NFS boot scripts. We S> already used this on another installation of Qlustar. It was S> working fine, but on our new install, it seems that the scripts S> are not executing at boot anymore. Here is the procedure we S> followed: S> 1. We created a script in /etc/qlustar/common/rc.boot S> 2. We made the script executable using chmod +x
is it executable by everybody (chmod 755)? root maps to user nobody on NFS clients so it won't start at boot if it isn't ...
S> If I look on the node, the script is visible in the NFS folder S> /etc/qlustar/common/rc.boot. If I execute it manually, it has the S> behaviour I'm expecting from it.
As root or another user? If it sill doesn't start automatically at boot if all these requirements are met, but it will if executed manually, it can be a timing issue (systemd dependency related).
S> Do you have any idea of why the NFS scripts could have some S> problems in executing at boot time? I was also wondering if S> there would be a way to start a service automatically at boot on S> a node?
It will have to be done via rc.boot scripts or would require some application-specific under the hood manipulations.
Best,
Roland
Hi,
I just checked, the script is executable by everybody:
ls -l /etc/qlustar/common/rc.boot/test.sh -rwxr-xr-x 1 root root 120 Jul 27 16:34 /etc/qlustar/common/rc.boot/test.sh
I executed the script manually as root. If I execute it as another user, it doesn't work since by default almost none of the node folders has write permission for other users than root.
I'm not sure, what I should do to solve the issue.
Regards,
Stephanie
"S" == stephanie kerckhof stephanie.kerckhof@ec.europa.eu writes:
Hi Stephanie,
S> Hi, I just checked, the script is executable by everybody:
S> ls -l /etc/qlustar/common/rc.boot/test.sh -rwxr-xr-x 1 root root S> 120 Jul 27 16:34 /etc/qlustar/common/rc.boot/test.sh
S> I executed the script manually as root. If I execute it as S> another user, it doesn't work since by default almost none of the S> node folders has write permission for other users than root.
yes, that's how Linux systems are designed :)
S> I'm not sure, what I should do to solve the issue.
Either run as root, or modify the permissions needed for your service before starting it.
Best,
Roland
Hello,
In the end, the problem was not linked to the file/folder permissions. My scripts were not run by run-parts because of the ".sh" extension I put in the filename. I did not check carefully enough the man page.
Everything is working fine now including starting services at boot.
Kind Regards,
Stephanie
"S" == stephanie kerckhof stephanie.kerckhof@ec.europa.eu writes:
Hi Stephanie,
S> Hello, In the end, the problem was not linked to the file/folder S> permissions. My scripts were not run by run-parts because of the S> ".sh" extension I put in the filename. I did not check carefully S> enough the man page.
S> Everything is working fine now including starting services at S> boot.
glad to hear that. Thanks for the feedback,
Roland