Skip to content

Commit

Permalink
Merge pull request #392 from stakwork/restart-pm2-on-reboot
Browse files Browse the repository at this point in the history
Restart pm2 on reboot
  • Loading branch information
Evanfeenstra authored Nov 12, 2024
2 parents 679747c + e69a4a8 commit 638a155
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/bin/super/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,10 @@ async fn create_ec2_instance(
sudo dpkg -i amazon-ssm-agent.deb
cd /home/admin/sphinx-swarm && \
pm2 start ecosystem.config.js && \
pm2 save && \
startup_command=$(pm2 startup | grep "sudo" | tail -n 1) && \
eval $startup_command && \
pm2 save && \
./restart-second-brain.sh
'
"#
Expand Down

0 comments on commit 638a155

Please sign in to comment.