[Unit] Description=Gitlab Mailroom Worker Requires=gitlab-puma.service Wants=gitlab-puma.service After=gitlab-puma.service StartLimitIntervalSec=100s [Service] User=gitlab Group=gitlab WorkingDirectory=/usr/share/gitlab EnvironmentFile=/usr/share/gitlab/environment SyslogIdentifier=gitlab-mailroom PIDFile=/run/gitlab/mailroom.pid ExecStart=/usr/bin/bundle exec mail_room -q -c /usr/share/gitlab/config/mail_room.yml ExecStop=/usr/bin/kill -QUIT $MAINPID Restart=on-failure RestartSec=1 [Install] WantedBy=multi-user.target