conditionpathexists is in systemd.unit
Signed-off-by: Xe <me@christine.website>
This commit is contained in:
parent
4a96438fa2
commit
172c8407ec
|
@ -60,11 +60,11 @@
|
||||||
systemd.services.mara-bot = {
|
systemd.services.mara-bot = {
|
||||||
wantedBy = [ "multi-user.target" ];
|
wantedBy = [ "multi-user.target" ];
|
||||||
environment.RUST_LOG = "tower_http=debug,info";
|
environment.RUST_LOG = "tower_http=debug,info";
|
||||||
|
unitConfig.ConditionPathExists = "/var/lib/mara-bot/config.yaml";
|
||||||
serviceConfig = {
|
serviceConfig = {
|
||||||
User = "mara-bot";
|
User = "mara-bot";
|
||||||
Group = "mara-bot";
|
Group = "mara-bot";
|
||||||
Restart = "always";
|
Restart = "always";
|
||||||
ConditionPathExists = "/var/lib/mara-bot/config.yaml";
|
|
||||||
WorkingDirectory = "/var/lib/mara-bot";
|
WorkingDirectory = "/var/lib/mara-bot";
|
||||||
ExecStart = "${self.defaultPackage."${system}"}/bin/mara";
|
ExecStart = "${self.defaultPackage."${system}"}/bin/mara";
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue