Define the monoserver as a systemd service
Much better than manually running: ```shell $ cd ~/briefcase && git pull --rebase origin master $ nix-rebuild switch $ nix-build -A zoo $ pkill zoo $ ./result/zoo & $ job -l $ disown %<job-number> ```
This commit is contained in:
parent
ace08853e0
commit
d903afeb54
1 changed files with 10 additions and 0 deletions
|
@ -142,6 +142,16 @@ in {
|
||||||
# };
|
# };
|
||||||
# };
|
# };
|
||||||
|
|
||||||
|
systemd.services.zoo = {
|
||||||
|
enable = true;
|
||||||
|
description = "Run my monoserver";
|
||||||
|
script = "${briefcase.zoo}/zoo";
|
||||||
|
environment = {};
|
||||||
|
serviceConfig = {
|
||||||
|
Restart = "always";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
|
||||||
services.gitDaemon = {
|
services.gitDaemon = {
|
||||||
enable = true;
|
enable = true;
|
||||||
basePath = "/srv/git";
|
basePath = "/srv/git";
|
||||||
|
|
Loading…
Reference in a new issue