NAICNO / Jobanalyzer

Easy to use resource usage report
MIT License
0 stars 1 forks source link

Clean up lockfiles and pidfiles on reboot (Fox, Saga, naic-monitor) #352

Open lars-t-hansen opened 10 months ago

lars-t-hansen commented 10 months ago

Lifted from #57:

Lockfile removal: ~sonar is /var/run/sonar on compute and gpu nodes, and this would work just fine. But on int and login it is /home/sonar - not fine. Have petitioned to change homedir to /var/run/sonar on int and login and then just change the script from using /var/tmp to using /var/run/sonar for lockfiles.

Edit: Discussion with fox admins: We'll move the homedir on the int and login nodes, it was always the intention that it should have been /var/run/sonar, and if new nodes are created they will get that too.

Edit^2: Except then we need a service to create /var/run/sonar on boot, probably, one can do something via tmpfiles.d(5) but it's becoming fairly elaborate, esp if we want to move toward making sonar a systemd service anyway.

lars-t-hansen commented 9 months ago

Also the .pid files for sonalyzed and infiltrate, bug #309.