forked from tigerblue77/Dell_iDRAC_fan_controller_Docker
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathidrac-fan-controller.service
62 lines (60 loc) · 1.55 KB
/
idrac-fan-controller.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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
[Unit]
Description=iDrac Fan Controller
[Service]
Type=simple
User=root
Group=root
Environment=IDRAC_HOST="local"
#Environment=IDRAC_USERNAME="wut"
#Environment=IDRAC_PASSWORD="yup"
Environment=FAN_SPEED="5"
Environment=CPU_TEMPERATURE_THRESHOLD="83"
Environment=CHECK_INTERVAL="30"
Environment=DISABLE_THIRD_PARTY_PCIE_CARD_DELL_DEFAULT_COOLING_RESPONSE="false"
Environment=KEEP_THIRD_PARTY_PCIE_CARD_COOLING_RESPONSE_STATE_ON_EXIT="false"
ExecStart=/opt/iDRAC-Fan-Control/controller.sh
Restart=on-failure
RestartSec=5
LimitNPROC=1
LimitFSIZE=0
StandardError=journal
StandardOutput=journal
SyslogIdentifier=idrac-fan-controller
SyslogFacility=local6
WorkingDirectory=/opt/iDRAC-Fan-Control
CapabilityBoundingSet=
AmbientCapabilities=
IPAddressDeny=any
IPAddressAllow=localhost
IPAccounting=yes
LockPersonality=true
MemoryDenyWriteExecute=true
NoNewPrivileges=true
PrivateDevices=true
DeviceAllow=/dev/ipmi0 rw
BindPaths=/dev/ipmi0
PrivateIPC=true
RemoveIPC=yes
PrivateTmp=true
PrivateUsers=true
ProtectClock=true
ProtectControlGroups=true
ProtectHome=true
ProtectHostname=true
ProtectKernelLogs=true
ProtectKernelModules=true
ProtectKernelTunables=true
ProtectProc=invisible
ProcSubset=pid
ProtectSystem=strict
RestrictAddressFamilies=AF_INET
RestrictNamespaces=true
RestrictRealtime=true
RestrictSUIDSGID=true
SystemCallArchitectures=native
SystemCallFilter=@system-service
SystemCallFilter=~@privileged @keyring @resources @obsolete @cpu-emulation @setuid @chown @aio @mount @debug @memlock userfaultfd mincore
SystemCallErrorNumber=EPERM
UMask=0077
[Install]
WantedBy=multi-user.target