summaryrefslogtreecommitdiff
path: root/gitlab-server/usr/share/gitlab-install/systemd-units
diff options
context:
space:
mode:
Diffstat (limited to 'gitlab-server/usr/share/gitlab-install/systemd-units')
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service11
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer8
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-sidekiq.service24
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-unicorn.service24
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service24
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-unicorn.service24
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/gitlab.target15
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/nginx.service15
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/postgres.service25
-rw-r--r--gitlab-server/usr/share/gitlab-install/systemd-units/redis.service13
10 files changed, 0 insertions, 183 deletions
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service
deleted file mode 100644
index 8672c36d..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.service
+++ /dev/null
@@ -1,11 +0,0 @@
-[Unit]
-Description=GitLab Backup Run
-After=postgres.service
-
-[Install]
-WantedBy=gitlab.target
-
-[Service]
-ExecStart=/usr/share/gitlab-install/backup-gitlab
-User=postgres
-Group=postgres
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer
deleted file mode 100644
index 1686843f..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-backup.timer
+++ /dev/null
@@ -1,8 +0,0 @@
-[Unit]
-Description=GitLab Backup Timer
-
-[Install]
-WantedBy=gitlab.target
-
-[Timer]
-OnCalendar=*-*-* 00:*:*
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-sidekiq.service b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-sidekiq.service
deleted file mode 100644
index 9a1a82d2..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-sidekiq.service
+++ /dev/null
@@ -1,24 +0,0 @@
-#####################################################
-#
-# GitLab version : 5.x - 6.x
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91
-# Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd
-#
-####################################################
-
-[Unit]
-Description=GitLab CI Sidekiq Worker
-
-[Service]
-Type=forking
-User=gitlab_ci
-WorkingDirectory=/home/gitlab_ci/gitlab-ci
-Environment=RAILS_ENV=production
-SyslogIdentifier=gitlab-ci-sidekiq
-PIDFile=/home/gitlab_ci/gitlab-ci/tmp/pids/sidekiq.pid
-
-ExecStart=/usr/bin/bundle exec "sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1"
-ExecStop=/usr/bin/bundle exec "sidekiqctl stop /home/gitlab_ci/gitlab-ci/tmp/pids/sidekiq.pid >> /home/gitlab_ci/gitlab-ci/log/sidekiq.log 2>&1"
-
-[Install]
-WantedBy=gitlab.target
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-unicorn.service b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-unicorn.service
deleted file mode 100644
index 151f9677..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-ci-unicorn.service
+++ /dev/null
@@ -1,24 +0,0 @@
-#####################################################
-#
-# GitLab version : 5.x - 6.x
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91
-# Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd
-#
-####################################################
-
-[Unit]
-Description=GitLab CI Unicorn Server
-
-[Service]
-User=gitlab_ci
-WorkingDirectory=/home/gitlab_ci/gitlab-ci
-Environment=RAILS_ENV=production
-SyslogIdentifier=gitlab-ci-unicorn
-PIDFile=/home/gitlab_ci/gitlab-ci/tmp/pids/unicorn.pid
-
-ExecStart=/usr/bin/bundle exec "unicorn_rails -c /home/gitlab_ci/gitlab-ci/config/unicorn.rb -E production"
-ExecStop=/bin/kill -s QUIT $MAINPID
-ExecReload=/bin/kill -s USR2 $MAINPID
-
-[Install]
-WantedBy=gitlab.target
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service
deleted file mode 100644
index 82ff78d4..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-sidekiq.service
+++ /dev/null
@@ -1,24 +0,0 @@
-#####################################################
-#
-# GitLab version : 5.x - 6.x
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91
-# Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd
-#
-####################################################
-
-[Unit]
-Description=GitLab Sidekiq Worker
-
-[Service]
-Type=forking
-User=git
-WorkingDirectory=/home/git/gitlab
-Environment=RAILS_ENV=production
-SyslogIdentifier=gitlab-sidekiq
-PIDFile=/home/git/gitlab/tmp/pids/sidekiq.pid
-
-ExecStart=/usr/bin/bundle exec "sidekiq -q post_receive,mailer,system_hook,project_web_hook,gitlab_shell,common,default -e production -P tmp/pids/sidekiq.pid -d -L log/sidekiq.log >> log/sidekiq.log 2>&1"
-ExecStop=/usr/bin/bundle exec "sidekiqctl stop /home/git/gitlab/tmp/pids/sidekiq.pid >> /home/git/gitlab/log/sidekiq.log 2>&1"
-
-[Install]
-WantedBy=gitlab.target
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-unicorn.service b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-unicorn.service
deleted file mode 100644
index a901d323..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab-unicorn.service
+++ /dev/null
@@ -1,24 +0,0 @@
-#####################################################
-#
-# GitLab version : 5.x - 6.x
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91
-# Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd
-#
-####################################################
-
-[Unit]
-Description=GitLab Unicorn Server
-
-[Service]
-User=git
-WorkingDirectory=/home/git/gitlab
-Environment=RAILS_ENV=production
-SyslogIdentifier=gitlab-unicorn
-PIDFile=/home/git/gitlab/tmp/pids/unicorn.pid
-
-ExecStart=/usr/bin/bundle exec "unicorn_rails -c /home/git/gitlab/config/unicorn.rb -E production"
-ExecStop=/bin/kill -s QUIT $MAINPID
-ExecReload=/bin/kill -s USR2 $MAINPID
-
-[Install]
-WantedBy=gitlab.target
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab.target b/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab.target
deleted file mode 100644
index 11e85441..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/gitlab.target
+++ /dev/null
@@ -1,15 +0,0 @@
-###########################################################################################
-#
-# GitLab version : 5.x - 6.x
-# Contributors : davispuh, mtorromeo, axilleas, boeserwolf91
-# Downloaded from : https://github.com/gitlabhq/gitlab-recipes/tree/master/init/systemd
-#
-###########################################################################################
-
-[Unit]
-Description=GitLab - Self Hosted Git Management
-Requires=redis.service postgres.service
-After=redis.service postgres.service syslog.target network.target
-
-[Install]
-WantedBy=multi-user.target
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/nginx.service b/gitlab-server/usr/share/gitlab-install/systemd-units/nginx.service
deleted file mode 100644
index 0a50c50b..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/nginx.service
+++ /dev/null
@@ -1,15 +0,0 @@
-[Unit]
-Description=The nginx HTTP and reverse proxy server
-After=syslog.target network.target remote-fs.target nss-lookup.target
-
-[Service]
-Type=forking
-PIDFile=/etc/nginx/nginx.pid
-ExecStartPre=/usr/sbin/nginx -t
-ExecStart=/usr/sbin/nginx
-ExecReload=/bin/kill -s HUP $MAINPID
-ExecStop=/bin/kill -s QUIT $MAINPID
-PrivateTmp=true
-
-[Install]
-WantedBy=multi-user.target
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/postgres.service b/gitlab-server/usr/share/gitlab-install/systemd-units/postgres.service
deleted file mode 100644
index ed46d965..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/postgres.service
+++ /dev/null
@@ -1,25 +0,0 @@
-[Unit]
-Description=PostgreSQL database server
-After=network.target
-
-[Service]
-Type=forking
-TimeoutSec=120
-User=postgres
-Group=postgres
-
-Environment=PGROOT=/home/postgres/pgsql
-
-SyslogIdentifier=postgres
-PIDFile=/home/postgres/pgsql/data/postmaster.pid
-
-ExecStart= /usr/bin/pg_ctl -s -D ${PGROOT}/data start -w -t 120
-ExecReload=/usr/bin/pg_ctl -s -D ${PGROOT}/data reload
-ExecStop= /usr/bin/pg_ctl -s -D ${PGROOT}/data stop -m fast
-
-# Due to PostgreSQL's use of shared memory, OOM killer is often overzealous in
-# killing Postgres, so adjust it downward
-OOMScoreAdjust=-200
-
-[Install]
-WantedBy=multi-user.target
diff --git a/gitlab-server/usr/share/gitlab-install/systemd-units/redis.service b/gitlab-server/usr/share/gitlab-install/systemd-units/redis.service
deleted file mode 100644
index c936f8da..00000000
--- a/gitlab-server/usr/share/gitlab-install/systemd-units/redis.service
+++ /dev/null
@@ -1,13 +0,0 @@
-[Unit]
-Description=Redis Server
-After=network.target
-
-[Service]
-Type=simple
-ExecStart=/usr/bin/redis-server
-ExecStop=/bin/kill -15 $MAINPID
-PIDFile=/var/run/redis.pid
-Restart=always
-
-[Install]
-WantedBy=multi-user.target