forked from revoltchat/zammad
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This will update from puma 4 to 6, which no longer provides daemonization. It also removes the deprecated `script/scheduler.rb` wrapper, please use `script/background-worker.rb` instead.
- Loading branch information
Showing
15 changed files
with
76 additions
and
257 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
#!/usr/bin/env ruby | ||
# Copyright (C) 2012-2023 Zammad Foundation, https://zammad-foundation.org/ | ||
|
||
require 'daemons' | ||
|
||
# | ||
# Generic daemonization script for legacy CI tests. | ||
# | ||
|
||
def exit_with_usage | ||
puts 'Usage: daemonize.rb start|stop -- $name_of_pidfile $commandline' | ||
exit false | ||
end | ||
|
||
dir = File.expand_path(File.join(__dir__, '../..')) | ||
|
||
daemon_options = { | ||
multiple: false, | ||
dir_mode: :normal, | ||
dir: File.join(dir, 'tmp', 'pids'), | ||
backtrace: true | ||
} | ||
|
||
separator_index = ARGV.index('--') | ||
exit_with_usage if separator_index.nil? | ||
args = ARGV[(separator_index + 1)..] | ||
exit_with_usage if args.count < 2 | ||
|
||
Daemons.run_proc(args[0], daemon_options) do | ||
Dir.chdir dir | ||
exec(args[1]) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
This directory used to contain an example init.d script for Zammad installations | ||
without Systemd. This was discontinued since Zammad now uses non-daemonizing service processes. | ||
|
||
If using Systemd is not an option for you, consider using the provided binary packages to install | ||
even on systems that don't have Systemd. | ||
|
||
Pull requests with a new init script that handles foreground | ||
processes correctly would be welcome as well. |
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.