2e41d2b0a3
* 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.
22 lines
577 B
Desktop File
22 lines
577 B
Desktop File
[Unit]
|
|
Description=GitLab Unicorn Server
|
|
PartOf=gitlab.target
|
|
Requires=redis-server.service
|
|
Wants=postgresql.service
|
|
After=redis-server.service postgresql.service
|
|
PartOf=gitlab.service
|
|
ReloadPropagatedFrom=gitlab.service
|
|
|
|
[Service]
|
|
Type=simple
|
|
User=gitlab
|
|
WorkingDirectory=/usr/share/gitlab
|
|
EnvironmentFile=/etc/gitlab/gitlab-debian.conf
|
|
EnvironmentFile=-/etc/default/gitlab
|
|
SyslogIdentifier=gitlab-unicorn
|
|
ExecStart=/usr/bin/bundle exec unicorn_rails -c config/unicorn.rb -E $RAILS_ENV
|
|
ExecReload=/bin/kill -USR2 $MAINPID
|
|
Restart=on-abnormal
|
|
|
|
[Install]
|
|
WantedBy=gitlab.target
|