aboutsummaryrefslogtreecommitdiff
path: root/conf/mastodon-sidekiq.service
diff options
context:
space:
mode:
authornemsia <nemsia@nemsia.org>2018-06-19 15:41:09 +0200
committernemsia <nemsia@nemsia.org>2018-06-19 15:41:09 +0200
commita6bca0a63a059838473ab175d3b5510780ba0a31 (patch)
tree80330068f95864a32b5a2fa6dccad92338662476 /conf/mastodon-sidekiq.service
parenta59ccf025cd72c27ffc012cb78cc4fad067762f4 (diff)
parentea9d2e8f0d93744988c03ef37a310bee4410e0b6 (diff)
downloadmastodon_ynh-a6bca0a63a059838473ab175d3b5510780ba0a31.tar.gz
mastodon_ynh-a6bca0a63a059838473ab175d3b5510780ba0a31.tar.bz2
mastodon_ynh-a6bca0a63a059838473ab175d3b5510780ba0a31.zip
Merge branch 'master' of nemsia into master
Diffstat (limited to 'conf/mastodon-sidekiq.service')
-rw-r--r--conf/mastodon-sidekiq.service10
1 files changed, 5 insertions, 5 deletions
diff --git a/conf/mastodon-sidekiq.service b/conf/mastodon-sidekiq.service
index 34074ed..f788332 100644
--- a/conf/mastodon-sidekiq.service
+++ b/conf/mastodon-sidekiq.service
@@ -1,17 +1,17 @@
[Unit]
- Description=mastodon-sidekiq
+ Description=__APP__-sidekiq
After=network.target
[Service]
Type=simple
- User=mastodon
- WorkingDirectory=/opt/mastodon/live
+ User=__APP__
+ WorkingDirectory=__FINALPATH__/live
Environment="RAILS_ENV=production"
Environment="DB_POOL=20"
- ExecStart=/opt/mastodon/.rbenv/shims/bundle exec sidekiq -c 20 -q default -q mailers -q pull -q push
+ ExecStart=__FINALPATH__/live/bin/bundle exec sidekiq -c 20 -q default -q mailers -q pull -q push
TimeoutSec=15
Restart=always
StandardError=syslog
[Install]
- WantedBy=multi-user.target \ No newline at end of file
+ WantedBy=multi-user.target