Skip to content

Commit

Permalink
(feat) Add service block to goreleaser brew config (dagu-org#597)
Browse files Browse the repository at this point in the history
This block allows for dagu to be run as a service under homebrew
and it then allows the following commands:

```
brew services status dagu
brew services start dagu
brew services stop dagu
```

When the brew install happens, there is also a prompt to the user
in case they want to enable the service or run directly.

The benefit here is that it enables dagu to be run as a background
service automatically on startup and controlled via a centralized
system.
  • Loading branch information
zph authored Jun 28, 2024
1 parent ba57bc9 commit 2c0971a
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -37,3 +37,11 @@ brews:
homepage: 'https://github.com/dagu-dev/dagu'
description: 'A No-code workflow executor that runs DAGs defined in a simple YAML format'
license: "GNU General Public License v3.0"
custom_block: |
service do
run [opt_bin/"dagu", "start-all"]
keep_alive true
error_log_path var/"log/dagu.log"
log_path var/"log/dagu.log"
working_dir var
end

0 comments on commit 2c0971a

Please sign in to comment.