Search found 68 matches

by dcrdev
2018/02/21 09:41:00
Forum: CentOS 7 - General Support
Topic: query about shell
Replies: 2
Views: 144

Re: query about shell

Because single quotes are interpreted literally i.e. variables aren't expanded....

Code: Select all

dt="$(date +%F)"
present="/tmp/home_$dt"

if [ ! -d "$present" ]; then
    cp -pr "/home/dtail/testing/global/script/home" "/tmp/home_$dt"
    sleep 8
else
    echo 'The /home folder is already present!'
fi
by dcrdev
2018/01/26 16:16:34
Forum: CentOS 7 - Software Support
Topic: Logrotate Removing Logs
Replies: 6
Views: 568

Re: Logrotate Removing Logs

This is the most infuriating thing ever - no way for me to debug this...

- The script + parameters called by cron, run fine manually.
- They don't work when called from cron.
- Cron log shows no errors.
- Logrotate status file shows no errors.

This is just nuts!
by dcrdev
2018/01/26 16:14:24
Forum: CentOS 7 - Software Support
Topic: Need some help setting up NFS
Replies: 2
Views: 156

Re: Need some help setting up NFS

Couple of ideas: - /var/nfs seems like an odd place to export, are you sure that it has an selinux context that permits nfs? - You have firewalld disabled but that doesn't necessarily mean it can't be reactivated, have you tried masking it? Or alternatively "firewall-cmd --add-service=nfs && firewal...
by dcrdev
2018/01/25 09:29:00
Forum: CentOS 7 - Software Support
Topic: Logrotate Removing Logs
Replies: 6
Views: 568

Re: Logrotate Removing Logs

So I can't get this to work - I thought I had it before because I was able to run it manually, but it would appear this isn't working as part of the daily cron. I've tried running the exact line from /etc/cron.daily/logrotate and it works if I do it manually. Furthermore all other logs are being rot...
by dcrdev
2018/01/16 11:47:14
Forum: CentOS 7 - Software Support
Topic: Cockpit.service can't be enabled
Replies: 3
Views: 234

Re: Cockpit.service can't be enabled

Yes it will!

Note that you need to enable cockpit.socket - not .service.
by dcrdev
2018/01/16 09:51:15
Forum: CentOS 7 - Software Support
Topic: Cockpit.service can't be enabled
Replies: 3
Views: 234

Re: Cockpit.service can't be enabled

Cockpit uses socket activation...

Code: Select all

sudo systemctl enable --now cockpit.socket
by dcrdev
2018/01/13 19:36:57
Forum: CentOS Social
Topic: PCID Speculation
Replies: 1
Views: 619

PCID Speculation

With the performance hit hitting KPTI patched systems and the apparent mitigation of this performance decrease with systems that have PCID support. Would anyone care to speculate whether or not Redhat will backport PCID support to the kernel in the current 7.x series of releases? I'm thinking they'v...
by dcrdev
2018/01/13 00:04:13
Forum: CentOS 7 - Software Support
Topic: Logrotate Removing Logs
Replies: 6
Views: 568

Re: Logrotate Removing Logs

Thanks that pointed me in the right direction - So when logrotate is called via cron it passes /etc/logrotate.conf as the config, that file has an include on /etc/logrotate.d/* . The main config file /etc/logrotate.conf has the logrotate directive set to 4, when passing the configs from /etc/logrota...
by dcrdev
2018/01/12 19:08:35
Forum: CentOS 7 - Software Support
Topic: Logrotate Removing Logs
Replies: 6
Views: 568

Logrotate Removing Logs

I'm trying to set up a custom logrotate config for some Apache virtualhost logs, but logrotate is creating the new empty log files and the old ones ares nowhere to be found. I ran find on the entire filesystem and they simply don't exist - can anyone help: cat /etc/logrotate.d/custom_httpd /storage/...
by dcrdev
2018/01/12 15:43:11
Forum: CentOS 7 - Software Support
Topic: Serial Console Quiet Boot
Replies: 1
Views: 188

Re: Serial Console Quiet Boot

No one, really?