summaryrefslogtreecommitdiff
path: root/doc/rc.d_cccms
diff options
context:
space:
mode:
authorerdgeist <erdgeist@erdgeist.org>2026-06-26 23:07:16 +0200
committererdgeist <erdgeist@erdgeist.org>2026-06-26 23:07:16 +0200
commit1bebea4f50f73a39140be862b10f2dbf4a4da1f5 (patch)
tree00178d147b479ab056f1485a79be1b8f7ae58537 /doc/rc.d_cccms
parent27729df99a8f1ccfcdcb0bc7dc31d9e816d78555 (diff)
update unicorn and rc.d docs
Diffstat (limited to 'doc/rc.d_cccms')
-rw-r--r--doc/rc.d_cccms35
1 files changed, 35 insertions, 0 deletions
diff --git a/doc/rc.d_cccms b/doc/rc.d_cccms
new file mode 100644
index 0000000..62e8bde
--- /dev/null
+++ b/doc/rc.d_cccms
@@ -0,0 +1,35 @@
1#!/bin/sh
2#
3# PROVIDE: cccms
4# REQUIRE: LOGIN postgresql
5# KEYWORD: shutdown
6
7. /etc/rc.subr
8
9name="cccms"
10rcvar="cccms_enable"
11desc="CCC CMS unicorn server"
12
13cccms_dir="${cccms_dir:-/usr/local/www/cccms}"
14cccms_unicorn_config="${cccms_unicorn_config:-/usr/local/etc/unicorn.rb}"
15
16command="/usr/local/rvm/gems/ruby-3.2.11@rails7-upgrade/wrappers/unicorn"
17command_args="-c ${cccms_unicorn_config} -E production -D"
18cccms_chdir="${cccms_dir}"
19
20pidfile="${cccms_pidfile:-${cccms_dir}/tmp/pids/unicorn.pid}"
21procname="ruby"
22
23required_dirs="${cccms_dir}"
24
25extra_commands="reload"
26sig_reload="USR2"
27
28export PATH=/usr/local/bin:/usr/local/sbin:/usr/bin:/usr/sbin:/bin:/sbin
29export RAILS_ENV=production
30export HOME=/root
31
32load_rc_config "${name}"
33: ${cccms_enable:="NO"}
34
35run_rc_command "$1"