/opt/graphite/bin/carbon-cache.py start systemd service?
Hi all,
To get Carbon running I've used the /opt/graphite/
/etc/systemd/
[Unit]
Description=carbon daemon
After=network.
[Service]
User=root
Group=www-data
WorkingDirector
ExecStart=
[Install]
WantedBy=
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Graphite Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- Piotr Popieluch
- Solved:
- 2018-04-23
- Last query:
- 2018-04-23
- Last reply:
- 2018-04-23
Yousef F (yousef.fattal) said : | #1 |
Hi
assuming the purpose is to get it as a service i usually use
cp /graphite/
chmod 755 /etc/init.
Not sure if that might help but just wanted to share it with you.
iodisciple (iodisciple) said : | #2 |
Hi Yousef,
Thank you for your answer, but I believe this does not work on a systemd system right?
The purpose is indeed getting it running as a service.
Kind regards,
iodisiciple
iodisciple (iodisciple) said : | #3 |
Hi again,
Does anybody have a valid systemd unit file to get carbon-cache started and enabled via systemd?
Thanks and kind regards,
iodisicple
|
#4 |
There are systemd unit files in the RPM package, see for sources here:
https:/
iodisciple (iodisciple) said : | #5 |
Many thanks, this did the trick:
[Unit]
Description=
After=network.
[Service]
Type=forking
StandardOutput=
StandardError=
ExecStart=
ExecReload=
PIDFile=
[Install]
WantedBy=
iodisciple (iodisciple) said : | #6 |
Thanks Piotr Popieluch, that solved my question.