我有以下服务:
[Unit]
Description=Renews letsencrypt certificates
After=network.target
[Service]
Type=oneshot
WorkingDirectory=/etc/letsencrypt/
ExecStart=/usr/bin/letsencrypt renew
以及以下计时器:
[Unit]
Description=letsencrypt timer
[Timer]
OnCalendar=daily
Persistent=true
Unit=letsencrypt.service
[Install]
WantedBy=basic.target
我有一个 bash 脚本:myscript.sh
我希望它在/usr/bin/letsencrypt renew
完成并要退出后运行(需要几秒钟)。这可能吗?