Since Mark Shuttleworth decided to switch to sytemd in the future, I was wondering if I can install it on my Ubuntu now?
Best Answer
Wily Werewolf (15.10) and newer:
You don't have to do anything. You are using systemd by default.
Trusty (14.04) and older:
You are out of luck. Ubuntu repositories do not provide the systemd binaries for versions before Utopic, despite the fact that their sources do generate the files. You can learn more about this in this answer.
They will support Upstart for as long as 14.04 is supported (until 2019), but systemd is the future, from 15.04 onwards. As of today: Upstart is used on the following supported releases:
First, the file you've posted does have "absolute path" error reported, as checked on Ubuntu 16.04 with systemd 229. You can check the syntax of the file yourself with:
Second, there's no need to include User=root in the file. System units are run by root as default.
Third, attempting to redirect the output of the service this way may not work and is not recommended. systemd has StandardOutput= and StandardInput= directives to control where this output goes. By default, it does something useful which it send the data to the systemd journal. if you want to review the logs you for just your service, you can use:
Best Answer
Wily Werewolf (15.10) and newer:
You don't have to do anything. You are using systemd by default.
Trusty (14.04) and older:
You are out of luck. Ubuntu repositories do not provide the systemd binaries for versions before Utopic, despite the fact that their sources do generate the files. You can learn more about this in this answer.