forked from google/mtail
-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mtail.service
46 lines (42 loc) · 1.13 KB
/
mtail.service
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
43
44
45
46
[Unit]
Description=mtail - extract internal monitoring data from application logs for collection in a timeseries database
Documentation=https://jaqx0r.github.io/
Requires=local-fs.target network.target
Before=nss-user-lookup.target
After=local-fs.target network.target
[Service]
User=mtail
Group=mtail
EnvironmentFile=-/etc/sysconfig/mtail
ExecStart=/usr/sbin/mtail $ARGS
ExecReload=/usr/bin/kill -1 $MAINPID
Restart=always
# various hardening options
AmbientCapabilities=
CapabilityBoundingSet=
KeyringMode=private
LockPersonality=yes
LockPersonality=yes
MemoryDenyWriteExecute=yes
MountFlags=private
NoNewPrivileges=yes
PrivateDevices=yes
PrivateTmp=yes
PrivateUsers=yes
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectKernelLogs=yes
ProtectKernelModules=yes
ProtectKernelTunables=yes
ProtectSystem=full
RemoveIPC=yes
RestrictAddressFamilies=AF_INET AF_INET6 AF_UNIX
RestrictNamespaces=yes
RestrictRealtime=yes
RestrictSUIDSGID=yes
SystemCallArchitectures=native
SystemCallFilter=@basic-io @file-system @io-event @ipc @network-io @signal clone kill madvise setrlimit tgkill uname
[Install]
WantedBy=multi-user.target