crontab to restart service
Hello, I'm working on creating a crontab to restart a service but when I do it I check the service and it hasn't restarted.
Example. Here I created a crontab to restart the firewalld service every minute, but when I check the service it's still showing the same time/date on last time it was started. here are my commands
crontab -e
restart firewalld.service every minute
-
-
-
-
- root systemctl restart firewalld.service
-
-
-
After this I run
systemctl status firewalld.service
This shows the same time It was restarted a couple months ago
Not sure what i'm doing wrong
Responses