modules/hyprspace: Auto-restart
This commit is contained in:
parent
67649a5cb7
commit
bf863cbc49
1 changed files with 2 additions and 0 deletions
|
@ -51,6 +51,8 @@ in {
|
||||||
'';
|
'';
|
||||||
environment.HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
|
environment.HYPRSPACE_SWARM_KEY = config.age.secrets.ipfs-swarm-key.path;
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
|
Restart = "on-failure";
|
||||||
|
RestartSec = "5s";
|
||||||
ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}";
|
ExecStart = "${hyprspace}/bin/hyprspace up hyprspace -f -c ${runConfig}";
|
||||||
ExecStop = "${hyprspace}/bin/hyprspace down hyprspace";
|
ExecStop = "${hyprspace}/bin/hyprspace down hyprspace";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue