Fixed PID file creation. Stop now works.
This commit is contained in:
@@ -25,7 +25,7 @@ pid_file="/var/run/${name}.pid"
|
|||||||
|
|
||||||
mastodon_sidekiq_start(){
|
mastodon_sidekiq_start(){
|
||||||
chdir /home/mastodon/live
|
chdir /home/mastodon/live
|
||||||
/usr/sbin/daemon -S -l daemon -s debug -T ${name} \
|
/usr/sbin/daemon -S -l daemon -s debug -T "${name}" -p "${pid_file}" \
|
||||||
-u mastodon \
|
-u mastodon \
|
||||||
/usr/bin/env -i \
|
/usr/bin/env -i \
|
||||||
"RAILS_ENV=production" "DB_POOL=25" "HOME=/home/mastodon" \
|
"RAILS_ENV=production" "DB_POOL=25" "HOME=/home/mastodon" \
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ pid_file="/var/run/${name}.pid"
|
|||||||
|
|
||||||
mastodon_streaming_start(){
|
mastodon_streaming_start(){
|
||||||
chdir /home/mastodon/live
|
chdir /home/mastodon/live
|
||||||
/usr/sbin/daemon -S -l daemon -s debug -T ${name} \
|
/usr/sbin/daemon -S -l daemon -s debug -T "${name}" -p "${pid_file}" \
|
||||||
-u mastodon \
|
-u mastodon \
|
||||||
/usr/bin/env -i \
|
/usr/bin/env -i \
|
||||||
"NODE_ENV=production" "PORT=4000" "HOME=/home/mastodon" \
|
"NODE_ENV=production" "PORT=4000" "HOME=/home/mastodon" \
|
||||||
|
|||||||
@@ -17,7 +17,7 @@
|
|||||||
name="mastodon_web"
|
name="mastodon_web"
|
||||||
rcvar="${name}_enable"
|
rcvar="${name}_enable"
|
||||||
command="/usr/local/bin/bundle exec puma -C config/puma.rb"
|
command="/usr/local/bin/bundle exec puma -C config/puma.rb"
|
||||||
command_interpreter="/usr/local/bin/ruby"
|
command_interpreter="/usr/local/bin/bundle"
|
||||||
start_cmd="${name}_start"
|
start_cmd="${name}_start"
|
||||||
stop_cmd="${name}_stop"
|
stop_cmd="${name}_stop"
|
||||||
|
|
||||||
@@ -25,7 +25,7 @@ pid_file="/var/run/${name}.pid"
|
|||||||
|
|
||||||
mastodon_web_start(){
|
mastodon_web_start(){
|
||||||
chdir /home/mastodon/live
|
chdir /home/mastodon/live
|
||||||
/usr/sbin/daemon -S -l daemon -s debug -T ${name} \
|
/usr/sbin/daemon -S -l daemon -s debug -T "${name}" -p "${pid_file}" \
|
||||||
-u mastodon \
|
-u mastodon \
|
||||||
/usr/bin/env -i \
|
/usr/bin/env -i \
|
||||||
"RAILS_ENV=production" "PORT=3000" "HOME=/home/mastodon" \
|
"RAILS_ENV=production" "PORT=3000" "HOME=/home/mastodon" \
|
||||||
|
|||||||
Reference in New Issue
Block a user