]> WPIA git - infra.git/blobdiff - commands
fix: agent needs no-daemonize when there's currently an agent running
[infra.git] / commands
index ef9ba7cb5bef0817e262e524c71d568c79400b18..531e973e0e1113565f74515476418e10aeb92be9 100755 (executable)
--- a/commands
+++ b/commands
@@ -57,9 +57,9 @@ if [[ $com == "update certs" || $com == "force update certs" ]]; then
     rmdir $folder
 elif [[ $com == "reload certs" ]]; then
     sudo puppet apply /etc/puppet/code/environments/production/manifests --verbose
-    sudo lxc-attach -n front-nginx -- puppet agent --verbose --onetime
-    sudo lxc-attach -n quiz -- puppet agent --verbose --onetime
-    sudo lxc-attach -n gigi -- puppet agent --verbose --onetime
+    sudo lxc-attach -n front-nginx -- puppet agent --verbose --onetime --no-daemonize
+    sudo lxc-attach -n quiz -- puppet agent --verbose --onetime --no-daemonize
+    sudo lxc-attach -n gigi -- puppet agent --verbose --onetime --no-daemonize
 elif [[ $com == "update crls" ]]; then
     if ! tar xv -C /data/crl; then
         echo "requiring tar"