![User's banner](/_next/image?url=https%3A%2F%2Flemmy.world%2Fpictrs%2Fimage%2Fb5a7c0ff-b1ac-42fe-87c1-3ce68ee0d4b1.jpeg&w=2048&q=75)
![Avatar](/_next/image?url=https%3A%2F%2Flemmy.world%2Fpictrs%2Fimage%2F321d1110-cab7-4b5c-b2f4-a88b81e66ee5.png&w=3840&q=75)
![Avatar](/_next/image?url=%2Flemmy-icon-96x96.webp&w=3840&q=75)
Rustmilian
I don’t disagree with you whatsoever…
I’d however like to also mention that people like “veganteacher” need to stop equating feeding your child some steak to rape…
Hits all the hallmarks of a shitpost. 👌
Butter with the dog on em.
Good to hear that it worked.
To explain env, typically when systemd is running a service it only provides a very minimal environment. When using env it passes more of the environment variables and whatnot from userspace, so it’s likely that the binary daemon was looking for specific environment variables and it returned an empty string and that’s what caused error, it’s also useful if the daemon’s location changes during runtime or if it’s not in a standard location.
Try ExecStart=/usr/bin/env /path/to/daemon
Also what’s the output of ldd /path/to/daemon
& sudo systemd-run /path/to/daemon
? Maybe check systemctl show-environment
. Maybe try adding Type=simple
, this tells systemd that the service will fork.
If that fails, we could try ExecStart=/usr/bin/strace -f -o /tmp/daemon_strace.log /path/to/daemon
for stactrace & ExecStart=/bin/sh -c '/path/to/daemon > /tmp/daemon.log 2>&1'
to log the daemon.