Fixed PID file creation. Stop now works.

This commit is contained in:
Mastodon service
2022-11-15 19:56:52 +01:00
parent fc8de02fe2
commit 366bbcbd74
3 changed files with 4 additions and 4 deletions

View File

@@ -25,7 +25,7 @@ pid_file="/var/run/${name}.pid"
mastodon_sidekiq_start(){
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 \
/usr/bin/env -i \
"RAILS_ENV=production" "DB_POOL=25" "HOME=/home/mastodon" \

View File

@@ -24,7 +24,7 @@ pid_file="/var/run/${name}.pid"
mastodon_streaming_start(){
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 \
/usr/bin/env -i \
"NODE_ENV=production" "PORT=4000" "HOME=/home/mastodon" \

View File

@@ -17,7 +17,7 @@
name="mastodon_web"
rcvar="${name}_enable"
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"
stop_cmd="${name}_stop"
@@ -25,7 +25,7 @@ pid_file="/var/run/${name}.pid"
mastodon_web_start(){
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 \
/usr/bin/env -i \
"RAILS_ENV=production" "PORT=3000" "HOME=/home/mastodon" \