diff options
| author | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 21:57:27 +0200 |
|---|---|---|
| committer | erdgeist <erdgeist@erdgeist.org> | 2026-06-27 21:57:27 +0200 |
| commit | 00c9b057c3ad0bcec83b03f24af14f2cd35b408d (patch) | |
| tree | 69d5cc5e2e714641776881b0c60f67a745305014 /doc | |
| parent | 8957808536e53bb9329cb6ae12835fde7835210b (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
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/rc.d_cccms | 4 |
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" | |||
| 13 | cccms_dir="${cccms_dir:-/usr/local/www/cccms}" | 13 | cccms_dir="${cccms_dir:-/usr/local/www/cccms}" |
| 14 | cccms_unicorn_config="${cccms_unicorn_config:-/usr/local/etc/unicorn.rb}" | 14 | cccms_unicorn_config="${cccms_unicorn_config:-/usr/local/etc/unicorn.rb}" |
| 15 | 15 | ||
| 16 | command="/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" |
| 17 | command="/usr/local/rvm/gems/ruby-3.2.11@rails8-upgrade/wrappers/unicorn" | ||
| 17 | command_args="-c ${cccms_unicorn_config} -E production -D" | 18 | command_args="-c ${cccms_unicorn_config} -E production -D" |
| 18 | cccms_chdir="${cccms_dir}" | 19 | cccms_chdir="${cccms_dir}" |
| 19 | 20 | ||
| @@ -25,6 +26,7 @@ required_dirs="${cccms_dir}" | |||
| 25 | extra_commands="reload" | 26 | extra_commands="reload" |
| 26 | sig_reload="USR2" | 27 | sig_reload="USR2" |
| 27 | 28 | ||
| 29 | start_precmd="cccms_prestart" | ||
| 28 | cccms_prestart() | 30 | cccms_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 |
