summarylogtreecommitdiffstats
path: root/gitlab-mailroom.service
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-mailroom.service')
-rw-r--r--gitlab-mailroom.service21
1 files changed, 21 insertions, 0 deletions
diff --git a/gitlab-mailroom.service b/gitlab-mailroom.service
new file mode 100644
index 000000000000..b659a567183a
--- /dev/null
+++ b/gitlab-mailroom.service
@@ -0,0 +1,21 @@
+[Unit]
+Description=Gitlab mailroom Worker
+Requires=gitlab-unicorn.service
+Wants=gitlab-unicorn.service
+After=gitlab-unicorn.service
+
+[Service]
+User=gitlab
+Group=gitlab
+Environment=RAILS_ENV=production PATH=/opt/ruby2.1/bin:/usr/bin
+WorkingDirectory=<DATADIR>
+SyslogIdentifier=gitlab-mailroom
+PIDFile=/run/gitlab/gitlab-mailroom.pid
+Type=oneshot
+RemainAfterExit=yes
+
+ExecStart=<DATADIR>/bin/mail_room start
+ExecStop=<DATADIR>/bin/mail_room stop
+
+[Install]
+WantedBy=multi-user.target \ No newline at end of file