systemd 开机自动运行脚本

1:首先在/etc/systemd/system/catchlog.service 中创建后缀为server的文件。如本例shell root@d:/home# cat catchlog.service [Uint] Description=catch log [Service] ExecStart=/bin/sh /home/catchlog.sh [Install] WantedBy=m
相关文章
相关标签/搜索