Not so long ago, I wrote about using pkgsrc on Debian GNU/Linux, and assumed you’d start an installed service using rc.d. When I setup the new iMil.net server, I decided to give a try to kvm as it is easier to maintain, has good performances (sometimes better than Xen), nice administration tools, plus NetBSD now has a good VirtIO driver but no PVHVM support yet.
The first thing I do when setting up a Debian Jessie server is getting rid of
systemd, whose philosophy and quality don’t match my personnal taste; but in that case, I wanted to use
libvirtd so I could manage my virtual machines with
virt-manager, and as a matter of fact,
libvirtd has a hard dependency on
systemd. There was no escape this time, I had to learn and use it.
nginx installed through pkgsrc, I wrote a
$ cat /etc/systemd/system/nginx.service
Then enabled the
$ sudo systemctl enable nginx
And finally started it:
$ sudo systemctl start nginx
Witness everything went as expected:
$ sudo systemctl status nginx -l
Note that this does not prevent from using