File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 145145 serviceConfig = {
146146 description = "Configure SABnzbd via API" ;
147147 after = [ "sabnzbd.service" ] ;
148- wants = [ "sabnzbd.service" ] ;
149- partOf = [ "sabnzbd.service" ] ;
150- wantedBy = [ "multi-user.target" ] ;
148+ bindsTo = [ "sabnzbd.service" ] ;
151149
152150 serviceConfig = {
153151 Type = "oneshot" ;
Original file line number Diff line number Diff line change 165165 after = [ "nixflix-setup-dirs.service" "network-online.target" ] ;
166166 requires = [ "nixflix-setup-dirs.service" ] ;
167167 wants = [ "network-online.target" ] ;
168+ # Ensure sabnzbd-config runs every time sabnzbd starts
169+ upholds = [ "sabnzbd-config.service" ] ;
168170
169171 serviceConfig = {
170172 ExecStartPre = pkgs . writeShellScript "sabnzbd-prestart" ''
190192 echo "SABnzbd configuration already exists, skipping creation"
191193 fi
192194 '' ;
193- ExecStartPost = "${ pkgs . systemd } /bin/systemctl --no-block restart sabnzbd-config.service" ;
194195 } ;
195196 } ;
196197
You can’t perform that action at this time.
0 commit comments