User's banner
Avatar

Rustmilian

Rustmilian@lemmy.world
Joined
38 posts • 146 comments

Dyslexic Privacy & Foss advocate, and Linux user.

Ace 🖤🩶🤍💜

Anti Commercial-AI license (CC BY-NC-SA 4.0)

Direct message

You fap to YouTube?

permalink
report
parent
reply

Hits all the hallmarks of a shitpost. 👌

permalink
report
reply

Butter with the dog on em.

permalink
report
reply

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.

permalink
report
parent
reply

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.

permalink
report
parent
reply