my-service.service
[Unit] Description=Run My Service every 10 seconds [Timer] OnUnitActiveSec=10s Unit=my-service.service [Install] WantedBy=timers.target sudo systemctl enable my-service.timer sudo systemctl start my-service.timer
![]() 夢想家活一身, 學無限~ 夢不息, 心不倦~ |
|
systemd - timer unit
my-service.service [Unit] Description=Run My Service every 10 seconds [Timer] OnUnitActiveSec=10s Unit=my-service.service [Install] WantedBy=timers.target sudo systemctl enable my-service.timer sudo systemctl start my-service.timer
»
|