Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add client operation logs for cockpit-machines #1781

Closed
wants to merge 3 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions packaging/cockpit-machines.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -86,11 +86,23 @@ If "virt-install" is installed, you can also create new virtual machines.
%make_install PREFIX=/usr
appstream-util validate-relax --nonet %{buildroot}/%{_datadir}/metainfo/*

# Add cockpit-machines-logging service
install -Dm644 %{_sourcedir}/src/systemd/cockpit-machines-logging.service %{buildroot}%{_unitdir}/cockpit-machines-logging.service
install -Dm755 %{_sourcedir}/src/bin/cockpit-machines-logging %{buildroot}%{_bindir}/cockpit-machines-logging

%post
%systemd_post cockpit-machines-logging.service

%preun
%systemd_preun cockpit-machines-logging.service

%files
%doc README.md
%license LICENSE dist/index.js.LEGAL.txt dist/index.css.LEGAL.txt
%{_datadir}/cockpit/*
%{_datadir}/metainfo/*
%{_unitdir}/cockpit-machines-logging.service
%attr(0755, root, root) %{_bindir}/cockpit-machines-logging

# The changelog is automatically generated and merged
%changelog
3 changes: 3 additions & 0 deletions src/bin/cockpit-machines-logging
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/bin/sh

busctl monitor --match 'interface=org.libvirt.Domain'
11 changes: 11 additions & 0 deletions src/systemd/cockpit-machines-logging.service
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Unit]
Description=Cockpit machines logging
Documentation=man:cockpit-machines
Requires=cockpit.service
After=cockpit.service

[Service]
ExecStart=/usr/bin/cockpit-machines-logging

[Install]
WantedBy=multi-user.target