question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debian 9: systemd unit file typo

See original GitHub issue

Hi folks:

The current systemd unit file has a typo: RequireMountsFor should be RequiresMountsFor:

Current

# /lib/systemd/system/graphite-api.service [Unit] Description=Graphite-API service Requires=graphite-api.socket RequireMountsFor=/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

Change

[Unit] … RequiresMountsFor=… …

Let me know if you need any more details!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
brutassecommented, Jul 25, 2018

Thanks @vincentbernat and @mattayes! I’ll close this issue here. 👍

1reaction
vincentbernatcommented, Jul 25, 2018

Thanks for the report. I’ll fix that for Debian Sid but it’s unlikely a fix will be pushed to Debian Stretch. If you rely on this directive, you’ll have to override it in /etc/systemd/system/graphite-api.service.d/require.conf.

Read more comments on GitHub >

github_iconTop Results From Across the Web

systemd.service(5) - Debian Manpages
A unit configuration file whose name ends in .service encodes information about a process controlled and supervised by systemd.
Read more >
systemd - MariaDB Knowledge Base
systemd is a sysVinit replacement that is the default service manager on the following Linux distributions: RHEL 7 and above; CentOS 7 and...
Read more >
Why does this systemd unit file generate an error "service has ...
service Failed to start valheim.service: Unit valheim.service has a bad unit file setting. See user logs and 'systemctl --user status valheim.
Read more >
How to Create rc.local File in Debian 9 - Elo Support
1. Edit the non-existing file “rc-local.service” : · 2. Edit the “rc.local” file : · 3. Change permissions chmod +x /etc/rc. · 4....
Read more >
systemd unit doesn't start on boot on Debian 9, but starts fine ...
I have a systemd unit intended to establish a SSH tunnel between two servers. The server which has the unit runs Debian 9....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found