You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
623 B
24 lines
623 B
[Unit]
|
|
After=network.target
|
|
|
|
[Service]
|
|
Type=simple
|
|
Restart=always
|
|
ExecStart={{ splunk.exec }} _internal_launch_under_systemd
|
|
LimitNOFILE=65536
|
|
SuccessExitStatus=51 52
|
|
RestartPreventExitStatus=51
|
|
RestartForceExitStatus=52
|
|
User={{ splunk.user }}
|
|
Group={{ splunk.group }}
|
|
Delegate=true
|
|
MemoryLimit=100G
|
|
CPUShares=1024
|
|
PermissionsStartOnly=true
|
|
ExecStartPost=/bin/bash -c "chown -R {{ splunk.user }}:{{ splunk.group }} /sys/fs/cgroup/cpu/system.slice/%n"
|
|
ExecStartPost=/bin/bash -c "chown -R {{ splunk.user }}:{{ splunk.group }} /sys/fs/cgroup/memory/system.slice/%n"
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
Alias=splunk.service
|