Skip to content

Commit

Permalink
use pre exec
Browse files Browse the repository at this point in the history
  • Loading branch information
Cory Schwartz committed Feb 17, 2021
1 parent ee396b3 commit 39aee94
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 19 deletions.
4 changes: 0 additions & 4 deletions tools/packer/lotus.pkr.hcl
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,6 @@ build {
source = "./tools/packer/systemd/lotus-miner.service"
destination = "lotus-miner.service"
}
provisioner "file" {
source = "./tools/packer/systemd/lotus-init.service"
destination = "lotus-init.service"
}
provisioner "file" {
source = "./tools/packer/homedir/LOTUS.txt"
destination = "LOTUS.txt"
Expand Down
3 changes: 1 addition & 2 deletions tools/packer/systemd/lotus-daemon.service
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
[Unit]
Description=Lotus Daemon
After=network.target
After=lotus-init.service
Wants=lotus-init.service

[Service]
User=fc
Group=fc
ExecStartPre=/usr/local/bin/lotus-init.sh
ExecStart=/usr/local/bin/lotus daemon
Environment=LOTUS_PATH=/var/lib/lotus
Restart=always
Expand Down
13 changes: 0 additions & 13 deletions tools/packer/systemd/lotus-init.service

This file was deleted.

0 comments on commit 39aee94

Please sign in to comment.