Open dbrgn opened 7 years ago
@dbrgn: oh very good point; after MakeZurich, I will try to change this without breaking existing installations :)
/etc/systemd/system overrides /lib/systemd/system :) Or you could remove the one in /lib if it exists before creating the one in /etc.
Actually to be perfectly correct, the target directory should be the value returned by pkg-config systemd --variable=systemdsystemunitdir
: https://www.freedesktop.org/software/systemd/man/systemd.html#Directories
Currently the service file is installed to
/lib/systemd/system/
, but this directory is not meant for user defined services.Custom services should be installed to
/etc/systemd/system/
instead.See https://www.freedesktop.org/software/systemd/man/systemd.unit.html