[PR #4138] [CLOSED] Add log to file flag for server #11394

Closed
opened 2026-04-12 23:29:18 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/4138
Author: @dhiltgen
Created: 5/3/2024
Status: Closed

Base: mainHead: serve_log_file


📝 Commits (1)

  • 4328532 Add log to file flag for server

📊 Changes

2 files changed (+38 additions, -12 deletions)

View changed files

📝 cmd/cmd.go (+26 -0)
📝 server/routes.go (+12 -12)

📄 Description

On Windows, system services don't have stdout/stderr sent anywhere. This coupled with recent packaging changes should enable advanced users to run ollama as a system service.

I'll leave this in draft until I have a chance to validate it actually works.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/4138 **Author:** [@dhiltgen](https://github.com/dhiltgen) **Created:** 5/3/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `serve_log_file` --- ### 📝 Commits (1) - [`4328532`](https://github.com/ollama/ollama/commit/43285321b276c8c9ae851f6d0af79210019040d6) Add log to file flag for server ### 📊 Changes **2 files changed** (+38 additions, -12 deletions) <details> <summary>View changed files</summary> 📝 `cmd/cmd.go` (+26 -0) 📝 `server/routes.go` (+12 -12) </details> ### 📄 Description On Windows, system services don't have stdout/stderr sent anywhere. This coupled with recent packaging changes should enable advanced users to run ollama as a system service. I'll leave this in draft until I have a chance to validate it actually works. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-12 23:29:18 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#11394