2018-06-19 19:29:37 +00:00
|
|
|
[Unit]
|
|
|
|
Description=Mastodon web workers service
|
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
User=mastodon
|
2018-06-19 20:00:49 +00:00
|
|
|
WorkingDirectory=/var/lib/mastodon
|
2018-06-19 19:29:37 +00:00
|
|
|
Environment="RAILS_ENV=production"
|
|
|
|
Environment="PORT=3000"
|
|
|
|
ExecStart=/usr/bin/bundle exec puma -C config/puma.rb
|
|
|
|
ExecReload=/bin/kill -SIGUSR1 $MAINPID
|
|
|
|
TimeoutSec=15
|
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|