mirror of
https://github.com/itme-brain/nixos.git
synced 2026-03-24 00:29:43 -04:00
added systemd service
This commit is contained in:
parent
854c73624d
commit
5244e49665
1 changed files with 21 additions and 21 deletions
|
|
@ -43,28 +43,28 @@ in
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
#systemd.services.electrs = {
|
systemd.services.electrs = {
|
||||||
# Unit = {
|
Unit = {
|
||||||
# Description = "Electrs Bitcoin Indexer";
|
Description = "Electrs Bitcoin Indexer";
|
||||||
# After = [ "network.target" "bitcoind.service" ];
|
After = [ "network.target" "bitcoind.service" ];
|
||||||
# Requires = [ "bitcoind.service" ];
|
Requires = [ "bitcoind.service" ];
|
||||||
# };
|
};
|
||||||
# Service = {
|
Service = {
|
||||||
# ExecStartPre = "${pkgs.coreutils}/sleep 10";
|
ExecStartPre = "${pkgs.coreutils}/sleep 10";
|
||||||
# ExecStart = "${pkgs.electrs}/bin/electrs --conf=${conf}";
|
ExecStart = "${pkgs.electrs}/bin/electrs --conf=${conf}";
|
||||||
|
|
||||||
# User = "electrs";
|
User = "electrs";
|
||||||
# Group = "bitcoin";
|
Group = "bitcoin";
|
||||||
|
|
||||||
# Type = "simple";
|
Type = "simple";
|
||||||
# KillMode = "process";
|
KillMode = "process";
|
||||||
# TimeoutSec = 60;
|
TimeoutSec = 60;
|
||||||
# Restart = "always";
|
Restart = "always";
|
||||||
# RestartSec = 60;
|
RestartSec = 60;
|
||||||
# };
|
};
|
||||||
# Install = {
|
Install = {
|
||||||
# WantedBy = [ "multi-user.target" ];
|
WantedBy = [ "multi-user.target" ];
|
||||||
# };
|
};
|
||||||
#};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue