3 ms·
Isn't that one command on FreeBSD? chdir z && daemon -u y -o blah.log x https://www.freebsd.org/cgi/man.cgi?query=daemon https://www.freebsd.org/cgi/man.cgi
by fanf2 7y ago
Isn't that one command on FreeBSD?
chdir z && daemon -u y -o blah.log x
https://www.freebsd.org/cgi/man.cgi?query=daemon https://www.freebsd.org/cgi/man.cgi?query=daemon
- Mister_Snuggles 7y agoI seem to remember having problems with daemon, but I can't remember what they were exactly. The Jail is gone now, so I can't look at the end result to see what I ended up with. By all accounts, this command should do exactly what I need though. I probably ended up with something like this[0], which doesn't use daemon. Home Assistant also provides a FreeNAS example[1] which uses daemon. For comparison, the systemd unit file that I ended up with is: [Unit] Description=Home Assistant After=network.target [Service] Type=simple Restart=always ExecStart=/home/hass/homeassistant/bin/python /home/hass/homeassistant/bin/hass WorkingDirectory=/home/hass User=hass Group=hass [Install] WantedBy=multi-user.target [0] https://gist.github.com/damoun/96add58f60572cb12c11 https://gist.github.com/damoun/96add58f60572cb12c11 [1] https://www.home-assistant.io/docs/installation/freenas/ https://www.home-assistant.io/docs/installation/freenas/