diff options
author | Caleb Maclennan | 2017-04-11 17:04:10 +0300 |
---|---|---|
committer | Caleb Maclennan | 2017-04-11 17:04:10 +0300 |
commit | 928d88217dffa2a4fc43ded666b3e17407647ca7 (patch) | |
tree | 4f1284a1b9e6129d0b216834643c1b710f9392fc | |
parent | 13dec54f2012f372ed0bbc76c279e5ac4ccda099 (diff) | |
download | aur-928d88217dffa2a4fc43ded666b3e17407647ca7.tar.gz |
Adapt systemd units to use our home directory
-rw-r--r-- | mastodon-sidekiq.service | 4 | ||||
-rw-r--r-- | mastodon-streaming.service | 2 | ||||
-rw-r--r-- | mastodon-web.service | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/mastodon-sidekiq.service b/mastodon-sidekiq.service index 7d1e3d48c73f..85510487cfe5 100644 --- a/mastodon-sidekiq.service +++ b/mastodon-sidekiq.service @@ -5,10 +5,10 @@ After=network.target [Service] Type=simple User=mastodon -WorkingDirectory=/home/mastodon/live +WorkingDirectory=/var/lib/mastodon/live Environment="RAILS_ENV=production" Environment="DB_POOL=5" -ExecStart=/home/mastodon/.rbenv/shims/bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push +ExecStart=/var/lib/mastodon/.rbenv/shims/bundle exec sidekiq -c 5 -q default -q mailers -q pull -q push TimeoutSec=15 Restart=always diff --git a/mastodon-streaming.service b/mastodon-streaming.service index 72be21bc914a..dc7b5a9bebd8 100644 --- a/mastodon-streaming.service +++ b/mastodon-streaming.service @@ -5,7 +5,7 @@ After=network.target [Service] Type=simple User=mastodon -WorkingDirectory=/home/mastodon/live +WorkingDirectory=/var/lib/mastodon/live Environment="NODE_ENV=production" Environment="PORT=4000" ExecStart=/usr/bin/npm run start diff --git a/mastodon-web.service b/mastodon-web.service index fc545686e265..2ed9f6899fa6 100644 --- a/mastodon-web.service +++ b/mastodon-web.service @@ -5,10 +5,10 @@ After=network.target [Service] Type=simple User=mastodon -WorkingDirectory=/home/mastodon/live +WorkingDirectory=/var/lib/mastodon/live Environment="RAILS_ENV=production" Environment="PORT=3000" -ExecStart=/home/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb +ExecStart=/var/lib/mastodon/.rbenv/shims/bundle exec puma -C config/puma.rb TimeoutSec=15 Restart=always |