Skip to content

Commit 2702f41

Browse files
labkey-willmclaude
andcommitted
add remote-fs.target to tomcat_lk.service After= dependency
Fixes a race condition where tomcat_lk.service starts before the EFS mount is ready after a system reboot. The nightly update script (lk-ssm-update.sh) reboots the server after installing new binaries; on boot, systemd was starting LabKey before the NFS/EFS mount at /mnt/efs_volume was available, leaving the /labkey/labkey/files symlink broken and causing LabKey to abort with "Invalid site root does not exist". Adding remote-fs.target to After= ensures systemd waits for all _netdev remote filesystem mounts before starting the service. Co-Authored-By: Claude Sonnet 4.6 <[email protected]>
1 parent e3d0881 commit 2702f41

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

install-labkey.bash

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1093,7 +1093,7 @@ function step_tomcat_service_embedded() {
10931093
10941094
[Unit]
10951095
Description=lk Apache Tomcat Application
1096-
After=syslog.target network.target
1096+
After=syslog.target network.target remote-fs.target
10971097
10981098
[Service]
10991099
Type=simple
@@ -1224,7 +1224,7 @@ function step_tomcat_service_standard() {
12241224
12251225
[Unit]
12261226
Description=lk Apache Tomcat Application
1227-
After=syslog.target network.target
1227+
After=syslog.target network.target remote-fs.target
12281228
12291229
[Service]
12301230
Type=forking

0 commit comments

Comments
 (0)