diff options
Diffstat (limited to 'mastodon-web.service')
-rw-r--r-- | mastodon-web.service | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/mastodon-web.service b/mastodon-web.service new file mode 100644 index 000000000000..90cd31c0d930 --- /dev/null +++ b/mastodon-web.service @@ -0,0 +1,17 @@ +[Unit] +Description=Mastodon web workers service +After=network.target + +[Service] +Type=simple +User=mastodon +WorkingDirectory=/var/lib/mastodon/live +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 |