/lib/systemd/system/gnocchi-api.service is in gnocchi-api 2.0.2-4.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | [Unit]
Description=OpenStack Gnocchi Api
After=postgresql.service mysql.service keystone.service rabbitmq-server.service ntp.service
[Service]
User=gnocchi
Group=gnocchi
Type=simple
WorkingDirectory=/var/lib/gnocchi
PermissionsStartOnly=true
ExecStartPre=/bin/mkdir -p /var/lock/gnocchi /var/log/gnocchi /var/lib/gnocchi
ExecStartPre=/bin/chown gnocchi:gnocchi /var/lock/gnocchi /var/log/gnocchi /var/lib/gnocchi
ExecStart=/etc/init.d/gnocchi-api systemd-start
Restart=on-failure
LimitNOFILE=65535
TimeoutStopSec=15
[Install]
WantedBy=multi-user.target
|