summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-27 21:57:27 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-27 21:57:27 +0200
commit00c9b057c3ad0bcec83b03f24af14f2cd35b408d (patch)
tree69d5cc5e2e714641776881b0c60f67a745305014
parent8957808536e53bb9329cb6ae12835fde7835210b (diff)
rc.d: switch to rails8-upgrade gemset, hook up start_precmd
- command: update gemset path from rails7-upgrade to rails8-upgrade - start_precmd: hook was defined but never assigned, so log/pid directory setup was silently skipped on service start
-rw-r--r--doc/rc.d_cccms4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/rc.d_cccms b/doc/rc.d_cccms
index 8404bc7..678ae75 100644
--- a/doc/rc.d_cccms
+++ b/doc/rc.d_cccms
@@ -13,7 +13,8 @@ desc="CCC CMS unicorn server"
13cccms_dir="${cccms_dir:-/usr/local/www/cccms}" 13cccms_dir="${cccms_dir:-/usr/local/www/cccms}"
14cccms_unicorn_config="${cccms_unicorn_config:-/usr/local/etc/unicorn.rb}" 14cccms_unicorn_config="${cccms_unicorn_config:-/usr/local/etc/unicorn.rb}"
15 15
16command="/usr/local/rvm/gems/ruby-3.2.11@rails7-upgrade/wrappers/unicorn" 16# command="/usr/local/rvm/gems/ruby-3.2.11@rails7-upgrade/wrappers/unicorn"
17command="/usr/local/rvm/gems/ruby-3.2.11@rails8-upgrade/wrappers/unicorn"
17command_args="-c ${cccms_unicorn_config} -E production -D" 18command_args="-c ${cccms_unicorn_config} -E production -D"
18cccms_chdir="${cccms_dir}" 19cccms_chdir="${cccms_dir}"
19 20
@@ -25,6 +26,7 @@ required_dirs="${cccms_dir}"
25extra_commands="reload" 26extra_commands="reload"
26sig_reload="USR2" 27sig_reload="USR2"
27 28
29start_precmd="cccms_prestart"
28cccms_prestart() 30cccms_prestart()
29{ 31{
30 mkdir -p /usr/local/www/cccms/tmp/pids /var/log 32 mkdir -p /usr/local/www/cccms/tmp/pids /var/log