mikhail-m1 / illuminanced

Ambient Light Sensor Daemon for Linux
GNU General Public License v3.0
65 stars 20 forks source link

Works in debug, but systemd service fails to start #20

Open ThatOneCalculator opened 3 months ago

ThatOneCalculator commented 3 months ago

Works when running RUST_LOG=debug /usr/local/sbin/illuminanced -d, but the systemd service shows this:

Aug 08 15:56:43 cayucos systemd[1]: Dependency failed for Ambient light monitoring Service.
░░ Subject: A start job for unit illuminanced.service has failed
░░ Defined-By: systemd
░░ Support: https://lists.freedesktop.org/mailman/listinfo/systemd-devel
░░
░░ A start job for unit illuminanced.service has finished with a failure.
░░
░░ The job identifier is 5830 and the job result is dependency.
Aug 08 15:56:43 cayucos systemd[1]: illuminanced.service: Job illuminanced.service/start failed with result 'dependency'.
~
willem640 commented 3 months ago

Is your syslog daemon running properly? You can check with systemctl status syslog.socket. Removing Requires=syslog.socket from the service file fixed this for me, though configuring syslog.socket is probably a better solution. For me rsyslog wasn't aliased correctly so aliasing it to syslog.service allowed syslog.socket to start.