aboutsummaryrefslogtreecommitdiffstats
path: root/meta-openstack/recipes-devtools/python/python-cinder/cinder-scheduler.service
blob: cbf346501a0923cf82ce5595d1fbcb75ecf6214f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
[Unit]
Description=OpenStack Cinder Scheduler
After=postgresql.service keystone.service rabbitmq-server.service ntp.service

[Service]
User=%USER%
Group=%GROUP%
Type=simple
WorkingDirectory=%LOCALSTATEDIR%/lib/cinder
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/log/cinder %LOCALSTATEDIR%/lib/cinder
ExecStartPre=/bin/chown cinder:cinder %LOCALSTATEDIR%/lock/cinder %LOCALSTATEDIR%/lib/cinder
ExecStartPre=/bin/chown cinder:adm %LOCALSTATEDIR%/log/cinder
ExecStart=/usr/bin/cinder-scheduler --config-file=%SYSCONFDIR%/cinder/cinder.conf
Restart=on-failure
LimitNOFILE=65535
TimeoutStopSec=15

[Install]
WantedBy=multi-user.target