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:
@ -46,10 +46,12 @@ then
|
|||||||
if [ -d "/lib/systemd/system" ]
|
if [ -d "/lib/systemd/system" ]
|
||||||
then
|
then
|
||||||
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service /lib/systemd/system
|
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service /lib/systemd/system
|
||||||
|
mkdir -p /lib/systemd/system/maxscale.service.d
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
elif [ -d "/usr/lib/systemd/system" ]
|
elif [ -d "/usr/lib/systemd/system" ]
|
||||||
then
|
then
|
||||||
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service /usr/lib/systemd/system
|
cp @CMAKE_INSTALL_PREFIX@/@MAXSCALE_SHAREDIR@/maxscale.service /usr/lib/systemd/system
|
||||||
|
mkdir -p /usr/lib/systemd/system/maxscale.service.d
|
||||||
systemctl daemon-reload
|
systemctl daemon-reload
|
||||||
fi
|
fi
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user