oke did take it up with Andrew and indeed its broken and in the next version that option is taken out.
if you want to use AD as deamon you need to use systemd (but without -p for the moment, because if i remember correct from another topic thats not working at the moment, will be corrected in next release)
Yeah I can live with that - as in my installation its a dedicated box - I imagine longer term the daemon option needs to be fixed though and/or the instructions amended to cover the case of systemd launching appdaemon under a virtualenv environment.
longer term will be that the docs need addition i guess.
or that can actually be short term.
i am really bad with systemd (i never use it) so if you know how i am happy to add it to the docs.
You need to create this file (adjust ExecStart) for where your HA is running
$ cat /etc/systemd/system/appdaemon.service
#
# Service file for systems with systemd to run appdaemon as the homeassistant user.
#
[Unit]
Description=appdaemon for homeassistant
After=network.target
[Service]
Type=simple
User=homeassistant
ExecStart=/home/homeassistant/appdaemon_venv/bin/appdaemon -c /home/homeassistant/.homeassistant
SendSIGKILL=no
Restart=on-abnormal
[Install]
WantedBy=multi-user.target