chore: Move vpower to libexec

This commit is contained in:
Kyle Gospodnetich 2023-12-25 23:30:51 -08:00
parent 36ee23c00d
commit b67cee9870
3 changed files with 3 additions and 1 deletions

View File

@ -5,7 +5,7 @@
[Service]
-ExecStart=/usr/lib/vpower
+ExecStart=/usr/bin/vpower
+ExecStart=/usr/libexec/vpower
Restart=on-failure
RestartSec=1

View File

@ -30,6 +30,8 @@ Service that calculates battery metrics and handles critical battery scenarios
%install
%cargo_install
mkdir -p %{buildroot}%{_libexecdir}
mv %{buildroot}%{_bindir}/%{name} %{buildroot}%{_libexecdir}/%{name}
mkdir -p %{buildroot}%{_unitdir}/
cp -v vpower.service %{buildroot}%{_unitdir}/%{name}.service
mkdir -p %{buildroot}%{_sysconfdir}/