Pārlūkot izejas kodu

Better WantedBy declaration

The problem with default.target is that it always points to the target that is currently started. So if you boot into single user mode or the rescue mode still Ollama tries to start.

I noticed this because either tried (and failed) to start all the time during a system update, where Ollama definitely is not wanted.
‮rekcäH nitraM‮ 1 mēnesi atpakaļ
vecāks
revīzija
25248f4bd5
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  1. 1 1
      docs/linux.md

+ 1 - 1
docs/linux.md

@@ -75,7 +75,7 @@ RestartSec=3
 Environment="PATH=$PATH"
 
 [Install]
-WantedBy=default.target
+WantedBy=multi-user.target
 ```
 
 Then start the service: