/lib/systemd/system/graphite-api.service is in graphite-api 1.1.3-2+deb9u1.
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 | [Unit]
Description=Graphite-API service
Requires=graphite-api.socket
RequiresMountsFor=/var/log/graphite-api /var/lib/graphite/whisper /var/lib/graphite-api
ConditionFileIsExecutable=/usr/bin/gunicorn3
ConditionPathExists=/etc/graphite-api.yaml
ConditionPathExists=/usr/lib/python3/dist-packages/graphite_api/app.py
[Service]
ExecStart=/usr/bin/gunicorn3 --name=graphite-api graphite_api.app:app
Restart=on-failure
User=_graphite
Group=_graphite
ExecReload=/bin/kill -s HUP $MAINPID
ExecStop=/bin/kill -s TERM $MAINPID
PrivateTmp=true
[Install]
WantedBy=multi-user.target
|