pcs cronjob

Issues related to applications and software problems
Post Reply
spanagak
Posts: 1
Joined: 2020/03/22 12:26:39

pcs cronjob

Post by spanagak » 2020/03/22 12:32:56

Hi guys?

I am new in linux and i would like to ask if is it possible to create a cronjob for pcs resource clean up command.

i am familiar with the day minute etc needed in front of the cronjob but i don't know if my thought is going to run.

I was thinking something about for example:

10 8 * * * root pcs resource clean.

Any suggestions?

User avatar
TrevorH
Forum Moderator
Posts: 28084
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: pcs cronjob

Post by TrevorH » 2020/03/22 12:58:28

Well, yes, it's possible but really it's not a good plan. The correct way to fix it is to fix the error that causes the resource to need to be cleaned up in the first place. You'd also want to use full paths to the executable in cron and if using crontab -e to create it, the entry doesn't need or want the username specified - see man 5 crontab
CentOS 6 will die in November 2020 - migrate sooner rather than later!
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 is dead, do not use it.
Full time Geek, part time moderator. Use the FAQ Luke

Post Reply

Return to “CentOS 7 - Software Support”