I recently upgraded my virtual machine from Utopia to Vivid 15.04, and I'm having trouble with my old init.d script for uwsgi—it's no longer working.
I followed the official docs to set up a uwsgi service daemon using SystemD here: http://uwsgi-docs.readthedocs.org/en/latest/Systemd.html.
It seemed pretty straightforward, but when I try to start the service, I get this error:
miruka@*****:~$ sudo systemctl start emperor.uwsgi.service
Job for emperor.uwsgi.service failed. See "systemctl status emperor.uwsgi.service" and "journalctl -xe" for details.
I have no idea why. Anyway, after that, systemctl crashes and the system becomes unusable.
sudo systemctl start emperor.uwsgi.service
Failed to get D-Bus connection: Operation not permitted
In dmesg I see:
[ 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]:
---
*Source: Ask Ubuntu Archive (CC BY-SA 4.0)*