Skip to content

Commit

Permalink
Move BlueChi daemons to /usr/libexec
Browse files Browse the repository at this point in the history
Moves `bluechi-controller`, `bluechi-agent` and `bluechi-proxy` daemons
to `/usr/libexec` directory, so users can use shell auto completion
feature for `bluechictl` much more effectively.

Fixes: eclipse-bluechi#571
Signed-off-by: Martin Perina <mperina@redhat.com>
  • Loading branch information
mwperina committed Sep 20, 2023
1 parent a102ff5 commit 43a2d68
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 16 deletions.
6 changes: 3 additions & 3 deletions bluechi.spec.in
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ This package contains the controller and command line tool.
%doc README.md
%doc README.developer.md
%license LICENSE
%{_bindir}/bluechi-controller
%{_libexecdir}/bluechi-controller
%{_datadir}/dbus-1/interfaces/org.eclipse.bluechi.Job.xml
%{_datadir}/dbus-1/interfaces/org.eclipse.bluechi.Manager.xml
%{_datadir}/dbus-1/interfaces/org.eclipse.bluechi.Monitor.xml
Expand Down Expand Up @@ -95,8 +95,8 @@ This package contains the node agent.
%dir %{_sysconfdir}/bluechi/agent.conf.d
%doc README.md
%license LICENSE
%{_bindir}/bluechi-agent
%{_bindir}/bluechi-proxy
%{_libexecdir}/bluechi-agent
%{_libexecdir}/bluechi-proxy
%{_datadir}/dbus-1/system.d/org.eclipse.bluechi.Agent.conf
%{_datadir}/bluechi-agent/config/agent.conf
%{_datadir}/dbus-1/interfaces/org.eclipse.bluechi.Agent.xml
Expand Down
4 changes: 2 additions & 2 deletions selinux/bluechi.fc
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
/usr/bin/bluechi-controller -- gen_context(system_u:object_r:bluechi_exec_t,s0)
/usr/libexec/bluechi-controller -- gen_context(system_u:object_r:bluechi_exec_t,s0)

/usr/bin/bluechi-agent -- gen_context(system_u:object_r:bluechi_agent_exec_t,s0)
/usr/libexec/bluechi-agent -- gen_context(system_u:object_r:bluechi_agent_exec_t,s0)

2 changes: 1 addition & 1 deletion selinux/bluechi_agent_selinux.8
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The bluechi_agent_t SELinux type can be entered via the \fBbluechi_agent_exec_t\

The default entrypoint paths for the bluechi_agent_t domain are the following:

/usr/bin/bluechi-agent
/usr/libexec/bluechi-agent
.SH PROCESS TYPES
SELinux defines process types (domains) for each process running on the system
.PP
Expand Down
2 changes: 1 addition & 1 deletion selinux/bluechi_controller_selinux.8
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ The bluechi_t SELinux type can be entered via the \fBbluechi_exec_t\fP file type

The default entrypoint paths for the bluechi_t domain are the following:

/usr/bin/bluechi-controller
/usr/libexec/bluechi-controller
.SH PROCESS TYPES
SELinux defines process types (domains) for each process running on the system
.PP
Expand Down
3 changes: 2 additions & 1 deletion src/agent/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,6 @@ executable(
],
c_args: common_cflags,
include_directories: include_directories('..'),
install: true
install: true,
install_dir: join_paths(prefixdir, get_option('libexecdir'))
)
1 change: 1 addition & 0 deletions src/manager/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ executable(
bluechi_lib,
],
install: true,
install_dir: join_paths(prefixdir, get_option('libexecdir')),
c_args: common_cflags,
include_directories: include_directories('..')
)
3 changes: 2 additions & 1 deletion src/proxy/meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,6 @@ executable(
],
c_args: common_cflags,
include_directories: include_directories('..'),
install: true
install: true,
install_dir: join_paths(prefixdir, get_option('libexecdir'))
)
2 changes: 1 addition & 1 deletion systemd-units/bluechi-agent-user.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@ After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/bluechi-agent --user
ExecStart=/usr/libexec/bluechi-agent --user
2 changes: 1 addition & 1 deletion systemd-units/bluechi-agent.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/bluechi-agent
ExecStart=/usr/libexec/bluechi-agent
Restart=on-failure

[Install]
Expand Down
2 changes: 1 addition & 1 deletion systemd-units/bluechi-controller.service
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ After=network.target

[Service]
Type=simple
ExecStart=/usr/bin/bluechi-controller
ExecStart=/usr/libexec/bluechi-controller
Restart=on-failure

[Install]
Expand Down
4 changes: 2 additions & 2 deletions systemd-units/bluechi-proxy-user@.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Documentation=man:bluechi-proxy(1)
StopWhenUnneeded=yes

[Service]
ExecStart=bluechi-proxy --user create %i.service
ExecStop=bluechi-proxy --user remove %i.service
ExecStart=/usr/libexec/bluechi-proxy --user create %i.service
ExecStop=/usr/libexec/bluechi-proxy --user remove %i.service
RemainAfterExit=yes
Type=oneshot
KillMode=mixed
4 changes: 2 additions & 2 deletions systemd-units/bluechi-proxy@.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ Documentation=man:bluechi-proxy(1)
StopWhenUnneeded=yes

[Service]
ExecStart=bluechi-proxy create %i.service
ExecStop=bluechi-proxy remove %i.service
ExecStart=/usr/libexec/bluechi-proxy create %i.service
ExecStop=/usr/libexec/bluechi-proxy remove %i.service
RemainAfterExit=yes
Type=oneshot
KillMode=mixed

0 comments on commit 43a2d68

Please sign in to comment.