Hej,
What would be the best way to execute command after boot, as a specific user, only on VFend?
Cheers, iggy
"I" == ignas bunikis ignas.bunikis@scilifelab.uu.se writes:
Hi Iggy,
I> Hej, What would be the best way to execute command after boot, as I> a specific user, only on VFend?
create an NFS boot script [1] and add a filter like:
[ "$HOSTNAME" = "my-fe-node" ] || exit 0
at the top. Then use 'su - <user> -c <command>'.
Best,
Roland
[1] https://docs.qlustar.com/en-US/Qlustar_Cluster_OS/11.0/html-single/Administr...
Thank you Roland!
This does the job.
Cheers, Iggy