blob: 3e5f559bf9720be763c92f0d74f375fae563cd76 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
|
[Unit]
Description=GitLab Pages
After=syslog.target network.target
ConditionFileIsExecutable=/usr/bin/gitlab-pages
[Service]
User=root
Group=root
StartLimitInterval=5
StartLimitBurst=10
# systemd cannot handle User=${...}, so wrap it in ExecStart instead
EnvironmentFile=/etc/gitlab-pages/service.env
ExecStart=/usr/bin/setpriv --inh-caps=-all --clear-groups \
--reuid=${GITLAB_PAGES_UID} --regid=${GITLAB_PAGES_GID} \
/usr/bin/gitlab-pages -config /etc/gitlab-pages/config.cfg
Restart=always
RestartSec=120
StandardOutput=journal
StandardError=journal
SyslogIdentifier=gitlab-pages
PrivateTmp=true
ProtectSystem=full
ProtectHome=true
[Install]
WantedBy=multi-user.target
|