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

Failed to start logid.service: Unit logid.service not found #494

Open
mattdillon100 opened this issue Mar 4, 2025 · 1 comment
Open

Comments

@mattdillon100
Copy link

OS: Ubuntu 24.10

I have followed the instructions to the letter and tried several times. Everytime, after sudo make install, when I run sudo service logid start I get

Failed to start logid.service: Unit logid.service not found.

I can see in the cmake command that it cannot find systemd, which is indeed missing from Ubuntu 24.10. Is this the issue? If so, how do I get the service started?

Log output from previous commands:

❯ cmake -DCMAKE_BUILD_TYPE=Release ..
-- The C compiler identification is GNU 14.2.0
-- The CXX compiler identification is GNU 14.2.0
-- Detecting C compiler ABI info
-- Detecting C compiler ABI info - done
-- Check for working C compiler: /usr/bin/cc - skipped
-- Detecting C compile features
-- Detecting C compile features - done
-- Detecting CXX compiler ABI info
-- Detecting CXX compiler ABI info - done
-- Check for working CXX compiler: /usr/bin/c++ - skipped
-- Detecting CXX compile features
-- Detecting CXX compile features - done
-- Found Git: /usr/bin/git (found version "2.45.2")
Submodule 'src/ipcgull' (https://github.com/PixlOne/ipcgull.git) registered for path 'src/ipcgull'
Cloning into '/opt/logiops/src/ipcgull'...
Submodule path 'src/ipcgull': checked out 'cd0f9a8cefb5b2545e163fceb249fdbcbaf666aa'
LogiOps Version Number: v0.3.5
-- Found PkgConfig: /usr/bin/pkg-config (found version "1.8.1")
-- Checking for module 'gio-2.0'
--   Found gio-2.0, version 2.82.1
-- Checking for module 'glib-2.0'
--   Found glib-2.0, version 2.82.1
--   Build shared library:          OFF
--   Build static library:          ON
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD
-- Performing Test CMAKE_HAVE_LIBC_PTHREAD - Success
-- Found Threads: TRUE
-- Checking for module 'libevdev'
--   Found libevdev, version 1.13.2
-- Checking for module 'systemd'
--   Package 'systemd', required by 'virtual:world', not found
-- Checking for module 'libconfig'
--   Found libconfig, version 1.5
-- Checking for module 'libudev'
--   Found libudev, version 256
/opt/logiops/src/logid/../ipcgull/src/include
-- dbus system policy will be installed at /usr/share/dbus-1/system.d
-- Configuring done (1.8s)
-- Generating done (0.0s)
-- Build files have been written to: /opt/logiops/build
❯ make
[  1%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/function.cpp.o
[  2%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/property.cpp.o
[  4%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/signal.cpp.o
[  5%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/interface.cpp.o
[  7%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/node.cpp.o
[  8%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/exception.cpp.o
[ 10%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/common_gdbus.cpp.o
[ 11%] Building CXX object src/ipcgull/CMakeFiles/ipcgull.dir/src/server_gdbus.cpp.o
[ 11%] Built target ipcgull
[ 13%] Linking CXX static library libipcgull.a
[ 13%] Built target ipcgull_static
[ 14%] Building CXX object src/logid/CMakeFiles/logid.dir/logid.cpp.o
[ 16%] Building CXX object src/logid/CMakeFiles/logid.dir/util/log.cpp.o
[ 17%] Building CXX object src/logid/CMakeFiles/logid.dir/config/config.cpp.o
[ 19%] Building CXX object src/logid/CMakeFiles/logid.dir/InputDevice.cpp.o
[ 20%] Building CXX object src/logid/CMakeFiles/logid.dir/DeviceManager.cpp.o
[ 22%] Building CXX object src/logid/CMakeFiles/logid.dir/Device.cpp.o
[ 23%] Building CXX object src/logid/CMakeFiles/logid.dir/Receiver.cpp.o
[ 25%] Building CXX object src/logid/CMakeFiles/logid.dir/Configuration.cpp.o
[ 26%] Building CXX object src/logid/CMakeFiles/logid.dir/features/DPI.cpp.o
[ 28%] Building CXX object src/logid/CMakeFiles/logid.dir/features/SmartShift.cpp.o
[ 29%] Building CXX object src/logid/CMakeFiles/logid.dir/features/HiresScroll.cpp.o
[ 31%] Building CXX object src/logid/CMakeFiles/logid.dir/features/RemapButton.cpp.o
[ 32%] Building CXX object src/logid/CMakeFiles/logid.dir/features/DeviceStatus.cpp.o
[ 34%] Building CXX object src/logid/CMakeFiles/logid.dir/features/ThumbWheel.cpp.o
[ 35%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/Action.cpp.o
[ 37%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/NullAction.cpp.o
[ 38%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/KeypressAction.cpp.o
[ 40%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/ToggleHiresScroll.cpp.o
[ 41%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/ToggleSmartShift.cpp.o
[ 43%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/CycleDPI.cpp.o
[ 44%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/ChangeDPI.cpp.o
[ 46%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/GestureAction.cpp.o
[ 47%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/ChangeHostAction.cpp.o
[ 49%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/ChangeProfile.cpp.o
[ 50%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/gesture/Gesture.cpp.o
[ 52%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/gesture/ReleaseGesture.cpp.o
[ 53%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/gesture/ThresholdGesture.cpp.o
[ 55%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/gesture/IntervalGesture.cpp.o
[ 56%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/gesture/AxisGesture.cpp.o
[ 58%] Building CXX object src/logid/CMakeFiles/logid.dir/actions/gesture/NullGesture.cpp.o
[ 59%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/Error.cpp.o
[ 61%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/raw/DeviceMonitor.cpp.o
[ 62%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/raw/RawDevice.cpp.o
[ 64%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/raw/IOMonitor.cpp.o
[ 65%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp10/Receiver.cpp.o
[ 67%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp10/ReceiverMonitor.cpp.o
[ 68%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp/Device.cpp.o
[ 70%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp/Report.cpp.o
[ 71%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp10/Error.cpp.o
[ 73%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp10/Device.cpp.o
[ 74%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/Device.cpp.o
[ 76%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/Error.cpp.o
[ 77%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/Feature.cpp.o
[ 79%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/EssentialFeature.cpp.o
[ 80%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/Root.cpp.o
[ 82%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/FeatureSet.cpp.o
[ 83%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/DeviceName.cpp.o
[ 85%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/Reset.cpp.o
[ 86%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/AdjustableDPI.cpp.o
[ 88%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/SmartShift.cpp.o
[ 89%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/ReprogControls.cpp.o
[ 91%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/HiresScroll.cpp.o
[ 92%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/ChangeHost.cpp.o
[ 94%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/WirelessDeviceStatus.cpp.o
[ 95%] Building CXX object src/logid/CMakeFiles/logid.dir/backend/hidpp20/features/ThumbWheel.cpp.o
[ 97%] Building CXX object src/logid/CMakeFiles/logid.dir/util/task.cpp.o
[ 98%] Building CXX object src/logid/CMakeFiles/logid.dir/util/ExceptionHandler.cpp.o
[100%] Linking CXX executable ../../logid
[100%] Built target logid
❯ sudo make install
[ 11%] Built target ipcgull
[ 13%] Built target ipcgull_static
[100%] Built target logid
Install the project...
-- Install configuration: "Release"
-- Installing: /usr/local/bin/logid
-- Installing: /usr/share/dbus-1/system.d/pizza.pixl.LogiOps.conf
❯ sudo service logid start
Failed to start logid.service: Unit logid.service not found.
@mattdillon100
Copy link
Author

Ok, so I found this issue. I had to created the service file manually. This might be a good place for @PixlOne to let us know why I had to do this but my bet is the systemd stuff above

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant