-
Notifications
You must be signed in to change notification settings - Fork 152
Expand file tree
/
Copy pathtlp.service.in
More file actions
35 lines (31 loc) · 778 Bytes
/
Copy pathtlp.service.in
File metadata and controls
35 lines (31 loc) · 778 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
# tlp - systemd startup/shutdown service
#
# Copyright (c) 2026 Thomas Koch <linrunner at gmx.net> and others.
# SPDX-License-Identifier: GPL-2.0-or-later
[Unit]
Description=TLP system startup/shutdown
After=multi-user.target NetworkManager.service
Before=shutdown.target
Documentation=https://linrunner.de/tlp
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=@TLP_SBIN@/tlp init start
ExecReload=@TLP_SBIN@/tlp start
ExecStop=@TLP_SBIN@/tlp init stop
# Lockdown
LockPersonality=yes
KeyringMode=private
MemoryDenyWriteExecute=yes
NoNewPrivileges=no
ProtectClock=yes
ProtectControlGroups=yes
ProtectHome=yes
ProtectHostname=yes
ProtectSystem=full
ProtectKernelLogs=yes
RestrictRealtime=yes
RestrictNamespaces=yes
RestrictSUIDSGID=yes
[Install]
WantedBy=multi-user.target