blob: a72e6eacbeb956caa69bfe350e351e53af79e057 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
[Unit]
Description=OpenStack Image Service Registry
After=postgresql.service keystone.service ntp.service rabbitmq-server.service
[Service]
User=%USER%
Group=%GROUP%
Type=simple
WorkingDirectory=%LOCALSTATEDIR%/lib/glance
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/log/glance %LOCALSTATEDIR%/lib/glance
ExecStartPre=/bin/chown %USER%:%GROUP% %LOCALSTATEDIR%/lock/glance %LOCALSTATEDIR%/lib/glance
ExecStartPre=/bin/chown %USER%:adm %LOCALSTATEDIR%/log/glance
ExecStart=/usr/bin/glance-registry --config-file=%SYSCONFDIR%/glance/glance-registry.conf --log-file=%LOCALSTATEDIR%/log/glance/glance-registry.log
Restart=on-failure
LimitNOFILE=65535
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target
|