summarylogtreecommitdiffstats
path: root/discourse-sidekiq.service
blob: ab4618b31b069463b3c9c2c14dfaeb6929843f37 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
[Unit]
Description=Discourse Sidekiq Worker
Requires=redis.service
After=redis.service network.target

[Service]
User=discourse
Group=discourse
SyslogIdentifier=discourse-sidekiq
WorkingDirectory=/usr/share/webapps/discourse
Environment=RAILS_ENV=production RUBY_GC_MALLOC_LIMIT=90000000

CapabilityBoundingSet=
PrivateTmp=true
PrivateDevices=true
ProtectSystem=full
ProtectHome=true
# NoNewPrivileges breaks discourse's email delivery if you
# use postfix' sendmail wrapper. If you use an SMTP server
# instead you can safely enable this security feature.
# NoNewPrivileges=true

ExecStart=/usr/bin/bundle exec "sidekiq -e production -L /var/log/discourse/sidekiq.log >> /var/log/discourse/sidekiq.log 2>&1"

[Install]
WantedBy=multi-user.target