MXS-2777: Create drop-in systemd directory

The directory for user-configurable drop-in systemd files is now created
on installation.
This commit is contained in:
Markus Mäkelä 2019-11-28 08:34:57 +02:00
parent 774e9bc3f0
commit 5743f4eaa1
No known key found for this signature in database
GPG Key ID: 72D48FCE664F7B19

View File

@ -46,10 +46,12 @@ then
if [ -d "/lib/systemd/system" ]
then
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service /lib/systemd/system
mkdir -p /lib/systemd/system/maxscale.service.d
systemctl daemon-reload
elif [ -d "/usr/lib/systemd/system" ]
then
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service /usr/lib/systemd/system
mkdir -p /usr/lib/systemd/system/maxscale.service.d
systemctl daemon-reload
fi
else