ttn-zh / ic880a-gateway

Reference setup for iC880a gateways running The Things Network
GNU General Public License v3.0
458 stars 210 forks source link

Install service file to correct location #14

Open dbrgn opened 7 years ago

dbrgn commented 7 years ago

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

gonzalocasas commented 7 years ago

@dbrgn: oh very good point; after MakeZurich, I will try to change this without breaking existing installations :)

dbrgn commented 7 years ago

/etc/systemd/system overrides /lib/systemd/system :) Or you could remove the one in /lib if it exists before creating the one in /etc.

dbrgn commented 7 years ago

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