-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathxoptimizer.service
More file actions
42 lines (34 loc) · 807 Bytes
/
Copy pathxoptimizer.service
File metadata and controls
42 lines (34 loc) · 807 Bytes
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
38
39
40
41
42
[Unit]
Description=X-Optimizer Smart Routing Engine
Documentation=man:xoptimizer(8)
After=network.target
[Service]
Type=simple
User=xoptimizer
Group=xoptimizer
ExecStart=/usr/local/bin/xoptimizer \
-s /run/xoptimizer/ipc.sock \
-r /etc/xoptimizer/rules.txt
Restart=on-failure
RestartSec=3s
# Runtime directory — systemd creates /run/xoptimizer automatically
RuntimeDirectory=xoptimizer
RuntimeDirectoryMode=0750
# Hardening
NoNewPrivileges=true
ProtectSystem=strict
ProtectHome=true
PrivateTmp=true
PrivateDevices=true
CapabilityBoundingSet=
AmbientCapabilities=
LockPersonality=true
RestrictRealtime=true
# Resource limits — 32 MiB arena + headroom
MemoryMax=64M
CPUQuota=25%
StandardOutput=journal
StandardError=journal
SyslogIdentifier=xoptimizer
[Install]
WantedBy=multi-user.target