Skip to content

man: document that systemctl cat shows file content#4488

Merged
keszybz merged 1 commit intosystemd:masterfrom
lucaswerkmeister:systemctl-cat
Oct 26, 2016
Merged

man: document that systemctl cat shows file content#4488
keszybz merged 1 commit intosystemd:masterfrom
lucaswerkmeister:systemctl-cat

Conversation

@lucaswerkmeister
Copy link
Member

@lucaswerkmeister lucaswerkmeister commented Oct 25, 2016


Should I file a bug for this as well? The current behavior isn’t very useful IMO – it doesn’t show you what systemd currently thinks about the unit, but it also doesn’t tell you what systemd will think about the unit after a systemctl daemon-reload because it doesn’t scan for new fragments (/run, /etc) or new drop-ins.

@keszybz
Copy link
Member

keszybz commented Oct 26, 2016

Yeah, we probably should issue a warning if the file has been modified. Your patch improves things in the meantime.

@keszybz keszybz merged commit d4a4867 into systemd:master Oct 26, 2016
@lucaswerkmeister lucaswerkmeister deleted the systemctl-cat branch October 26, 2016 06:49
@lucaswerkmeister
Copy link
Member Author

I can try to add that warning, shouldn’t be too hard based on the existing systemctl feature. (This would be a per-unit warning, not a per-file one, but it’s better than nothing.)

lucaswerkmeister added a commit to lucaswerkmeister/systemd that referenced this pull request Oct 26, 2016
lucaswerkmeister added a commit to lucaswerkmeister/systemd that referenced this pull request Oct 26, 2016
lucaswerkmeister added a commit to lucaswerkmeister/systemd that referenced this pull request Oct 27, 2016
keszybz pushed a commit that referenced this pull request Oct 27, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

2 participants