13693261870
2025-04-07 d12129642190fd3af26112b8d21f0d07f50c6657
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
[Unit]
Description=/etc/rc.local Compatibility
Documentation=man:systemd-rc-local-generator(8)
ConditionFileIsExecutable=/etc/rc.local
After=network.target
 
[Service]
Type=forking
ExecStart=/etc/rc.local start
TimeoutSec=0
RemainAfterExit=yes
GuessMainPID=no
 
# 在该文件末尾添加以下内容
[Install]
WantedBy=multi-user.target
Alias=rc-local.service