conditionpathexists is in systemd.unit

Signed-off-by: Xe <me@christine.website>
This commit is contained in:
Cadey Ratio 2022-02-19 14:39:21 -05:00
parent 4a96438fa2
commit 172c8407ec
1 changed files with 1 additions and 1 deletions

View File

@ -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";
}; };