Atoptool / atop

System and process monitor for Linux
GNU General Public License v2.0
789 stars 110 forks source link

atop-rotate.service: use restart instead of try-restart #231

Closed ShirleyFei closed 1 year ago

ShirleyFei commented 1 year ago

man systemctl says the 'try-restart' pattern: 'Restart one or more units specified on the command line if the units are running. This does nothing if units are not running.'

That means atop can not be started successfully by daily atop-rotate.timer if it is already exited. Fix this by changing try-restart to restart.

Signed-off-by: Fei Li lifei.shirley@bytedance.com