fix: add mount dependencies to qbittorrent
All checks were successful
ci / treefmt (push) Successful in 1m33s
All checks were successful
ci / treefmt (push) Successful in 1m33s
This commit is contained in:
parent
eb249da51e
commit
fa474d844e
1 changed files with 14 additions and 2 deletions
|
|
@ -42,6 +42,10 @@ in {
|
|||
hostPath = "/var/lib/qBittorrent";
|
||||
isReadOnly = false;
|
||||
};
|
||||
"/var/lib/qBittorrent/qBittorrent/downloads/autobrr" = {
|
||||
hostPath = "/var/lib/qBittorrent/qBittorrent/downloads/autobrr";
|
||||
isReadOnly = false;
|
||||
};
|
||||
};
|
||||
|
||||
config = {
|
||||
|
|
@ -127,8 +131,16 @@ in {
|
|||
|
||||
systemd.services = {
|
||||
qbittorrent = {
|
||||
bindsTo = ["openvpn-default.service"];
|
||||
after = ["openvpn-default.service"];
|
||||
requires = [
|
||||
"var-lib-qBittorrent.mount"
|
||||
"var-lib-qBittorrent-qBittorrent-downloads-autobrr.mount"
|
||||
];
|
||||
|
||||
after = [
|
||||
"openvpn-default.service"
|
||||
"var-lib-qBittorrent.mount"
|
||||
"var-lib-qBittorrent-qBittorrent-downloads-autobrr.mount"
|
||||
];
|
||||
};
|
||||
openvpn-default = {
|
||||
upholds = ["qbittorrent.service"];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue