这是我的 Systemd 脚本:
[Unit]
Description=RDS Services
[Service]
WorkingDirectory=/home/rdsdb2/script_rds/
Type=oneshot
ExecStart=/bin/bash start_services.sh
ExecStop=/bin/bash stop_services.sh
KillMode=process
[Install]
WantedBy=multi-user.target
我无法理解为什么它会按顺序执行(在系统启动或我手动启动时)ExecStart 和 ExecStop。
你能帮我吗?
提前感谢你。