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" \