创建服务
nano /etc/systemd/system/myshsh.service
1 | [Unit] |
创建定时器
1 | nano /etc/systemd/system/mysh.timer |
1 | [Unit] |
运行并设置开机自动运行
systemctl enable --now mysh.timer
重新载入
systemctl daemon-reload
停止计时器并关闭开机自动运行
systemctl disable --now mysh.timersystemctl daemon-reload