diff --git a/tools/packer/systemd/lotus-daemon.service b/tools/packer/systemd/lotus-daemon.service index 0c14a4ab0..edbc91151 100644 --- a/tools/packer/systemd/lotus-daemon.service +++ b/tools/packer/systemd/lotus-daemon.service @@ -7,9 +7,11 @@ User=fc Group=fc ExecStartPre=/usr/local/bin/lotus-init.sh ExecStart=/usr/local/bin/lotus daemon +ExecStop=/usr/local/bin/lotus daemon stop Environment=LOTUS_PATH=/var/lib/lotus Restart=always RestartSec=30 +TimeoutSec=infinity [Install] WantedBy=multi-user.target