-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
config: minimal systemd service files
- Loading branch information
1 parent
96f4a8b
commit 10836cd
Showing
3 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
## Service configuration files | ||
|
||
- `miden-faucet.service`: simple configuration to setup a faucet service monitored via systemd. | ||
- `miden-node.service`: simple configuration to setup full node service monitored via systemd. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
[Unit] | ||
Description=Miden faucet | ||
Wants=network-online.target | ||
Wants=miden-node.service | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
||
[Service] | ||
Type=exec | ||
Environment="RUST_LOG=info" | ||
ExecStart=miden-faucet import --asset-amount 100 --faucet-path /srv/miden-node/accounts/account1.mac | ||
ExecStartPre=-rm store.sqlite3 | ||
WorkingDirectory=/srv/miden-faucet | ||
RestartSec=5 | ||
Restart=always |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
[Unit] | ||
Description=Miden node | ||
Wants=network-online.target | ||
|
||
[Install] | ||
WantedBy=multi-user.target | ||
|
||
[Service] | ||
Type=exec | ||
Environment="RUST_LOG=info" | ||
ExecStart=miden-node start | ||
WorkingDirectory=/srv/miden-node | ||
RestartSec=5 | ||
Restart=always |