debian-mirror-gitlab/debian/gitlab.gitlab-workhorse.service
Dmitry Smirnov 2e41d2b0a3 Rewrite terrible upstream .service files:
* added meta "gitlab.service" that work alike corresponding init.d script
 * new .service files with support for "reload" and propagation of "reload" from "gitlab.service"
 * non-forking PIDFILE-less implementation

This commit fixes services' start-up and postinst error on first install.
2016-07-18 04:15:13 +10:00

26 lines
739 B
Desktop File

[Unit]
Description=Gitlab Workhorse handles slow HTTP requests for Gitlab.
PartOf=gitlab.target
Requires=gitlab-unicorn.service
Wants=gitlab-unicorn.service
After=gitlab-unicorn.service
PartOf=gitlab.service
ReloadPropagatedFrom=gitlab-unicorn.service
[Service]
Type=simple
User=gitlab
WorkingDirectory=/usr/share/gitlab
EnvironmentFile=/etc/gitlab/gitlab-debian.conf
SyslogIdentifier=gitlab-workhorse
ExecStart=/usr/bin/gitlab-workhorse \
-listenUmask 0 \
-listenNetwork unix \
-listenAddr ${gitlab_pid_path}/gitlab-workhorse.socket \
-authBackend http://127.0.0.1:8080 \
-authSocket ${gitlab_pid_path}/gitlab.socket \
-documentRoot ${gitlab_app_root}/public
Restart=on-abnormal
[Install]
WantedBy=gitlab.target