Skip to content

Commit

Permalink
config: minimal systemd service files
Browse files Browse the repository at this point in the history
  • Loading branch information
hackaugusto committed Mar 6, 2024
1 parent 96f4a8b commit 10836cd
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 0 deletions.
4 changes: 4 additions & 0 deletions config/README.md
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.
16 changes: 16 additions & 0 deletions config/miden-faucet.service
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
14 changes: 14 additions & 0 deletions config/miden-node.service
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

0 comments on commit 10836cd

Please sign in to comment.