Home
Categories
WIKI
Topic
User
LANGUAGE:
中文
English
如何在关机前执行脚本?
Experiences and Insight
240
views ·
2
replies ·
To
floor
Go
deepin-chinaren
deepin
2019-07-23 05:20
Author
如何在关机前执行脚本?
Reply
Like 0
Favorite
View the author
All Replies
jianguo922
deepin
2019-07-23 05:46
#1
我也想知道
Reply
Like 0
View the author
funtoo
deepin
2019-07-23 05:54
#2
编写个类似的systemd service文件
[Unit]
Description=foobar
Before=shutdown.target
[Service]
ExecStop=/foo/bar.sh
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Copy the Code
然后enable一下。
Reply
Like 0
View the author
Please
sign
in first
Featured Collection
Change
[Tutorial] deepin25 WSL Offline Installation Guide
UOS AI 2.8 Released! Three New Intelligent Agents & Major Evolution
Solid Q&A | deepin 25 Common Questions – The Immutable System Edition
New Thread
Popular Ranking
Change
UOS AI Hardware Diagnostics
take my online class
Popular Events
More