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:
parent
774e9bc3f0
commit
5743f4eaa1
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user