Atualizei recentemente uma máquina virtual de utopic para vivid 15.04. Eu costumava ter um script init.d para o meu uwsgi que não funciona mais.
Eu segui a documentação oficial para criar um daemon do serviço uwsgi com o SystemD a partir daqui: link .
Parece bastante simples, no entanto, quando executo o serviço, recebo esse erro.
miruka@*****:~$ sudo systemctl start emperor.uwsgi.service
Job for emperor.uwsgi.service failed. See "systemctl status emperor.uwsgi.service" and "journalctl -xe" for details.
Eu não tenho ideia do porquê. De qualquer forma, depois disso, o systemctl trava e fica inutilizável.
sudo systemctl start emperor.uwsgi.service
Failed to get D-Bus connection: Operation not permitted
No dmesg eu vejo:
[ 37.004704] random: nonblocking pool is initialized
[ 271.733039] systemd[1]: systemd-journald.service: main process exited, code=dumped, status=6/ABRT
[ 271.733378] systemd[1]: Unit systemd-journald.service entered failed state.
[ 271.733441] systemd[1]: systemd-journald.service failed.
[ 271.733853] systemd[1]: systemd-journald.service has no holdoff time, scheduling restart.
[ 271.734283] systemd[1]: Stopping Flush Journal to Persistent Storage...
[ 271.735113] systemd[1]: Starting Journal Service...
[ 271.792164] systemd-journald[1219]: File /run/log/journal/0d99c9801b8b4ec1a3f5942be02a144c/system.journal corrupted or uncleanly shut down, renaming and replacing.
[ 281.300187] systemd[1]: systemd-timesyncd.service watchdog timeout (limit 1min)!
[ 281.301408] systemd[1]: systemd-timesyncd.service: main process exited, code=killed, status=6/ABRT
[ 281.301672] systemd[1]: Unit systemd-timesyncd.service entered failed state.
[ 281.301718] systemd[1]: systemd-timesyncd.service failed.
[ 281.303804] systemd[1]: systemd-timesyncd.service has no holdoff time, scheduling restart.
[ 281.305369] systemd[1]: Starting Network Time Synchronization...
[ 281.330476] systemd[1]: systemd-timesyncd.service: main process exited, code=exited, status=1/FAILURE
[ 281.330905] systemd[1]: Failed to start Network Time Synchronization.
[ 281.331007] systemd[1]: Unit systemd-timesyncd.service entered failed state.
[ 281.331047] systemd[1]: systemd-timesyncd.service failed.
[ 281.333299] systemd[1]: systemd-timesyncd.service has no holdoff time, scheduling restart.
[ 281.334691] systemd[1]: Starting Network Time Synchronization...
[ 281.343251] systemd[1]: systemd-timesyncd.service: main process exited, code=exited, status=1/FAILURE
[ 281.343658] systemd[1]: Failed to start Network Time Synchronization.
Reiniciar resolve o problema, mas ainda não consigo executar meu serviço. Alguma idéia?