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 = {
|
||||
wantedBy = [ "multi-user.target" ];
|
||||
environment.RUST_LOG = "tower_http=debug,info";
|
||||
unitConfig.ConditionPathExists = "/var/lib/mara-bot/config.yaml";
|
||||
serviceConfig = {
|
||||
User = "mara-bot";
|
||||
Group = "mara-bot";
|
||||
Restart = "always";
|
||||
ConditionPathExists = "/var/lib/mara-bot/config.yaml";
|
||||
WorkingDirectory = "/var/lib/mara-bot";
|
||||
ExecStart = "${self.defaultPackage."${system}"}/bin/mara";
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue