-
Notifications
You must be signed in to change notification settings - Fork 341
/
Copy pathmaxscale.service.in
37 lines (30 loc) · 1.03 KB
/
maxscale.service.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
[Unit]
Description=MariaDB MaxScale Database Proxy
After=network.target
[Service]
Type=forking
Restart=on-abort
@SERVICE_FILE_DEBUG_OPTIONS@
@SERVICE_FILE_ASAN_OPTIONS@
@SERVICE_FILE_UBSAN_OPTIONS@
# Make sure /var/cache/maxscale exists. Downgrading from 24.02 to 23.08 will
# remove it due to how the packaging has been changed.
ExecStartPre=+/usr/bin/install -d @MAXSCALE_VARDIR@/cache/maxscale -o maxscale -g maxscale
# This makes sure /var/run/maxscale exists. The directory is created as
# /run/maxscale but /var/run is always a symlink to /run which makes it
# work even with the legacy /var/run that MaxScale uses.
RuntimeDirectory=maxscale
PIDFile=@MAXSCALE_VARDIR@/run/maxscale/maxscale.pid
# Use the default user and group
User=maxscale
Group=maxscale
ExecStart=@CMAKE_INSTALL_PREFIX@/@MAXSCALE_BINDIR@/maxscale
TimeoutStartSec=120
LimitNOFILE=65535
StartLimitBurst=0
WatchdogSec=60s
NotifyAccess=all
# MaxScale should be restarted if it exits with 75 (BSD's EX_TEMPFAIL)
RestartForceExitStatus=75
[Install]
WantedBy=multi-user.target