Displaying 3 results from an estimated 3 matches for "kskdir".
Did you mean:
zskdir
2017 Feb 01
4
Script not running correctly as cronjob
...finsihed, but it isn't.
03:04:28 DNSSEC-Signierung abgeschlossen
The script deletes the old signed zones, but don't resign it. The mail is also sent.
Below the script.
Anybody an idea why it doesn't work in cron?^
I cannot find any error in any log.
Best regards
Daniel
#!/bin/bash
KSKDIR="/etc/named/KSK"
ZSKDIR="/etc/named/ZSK"
ZONEDIR="/var/named/chroot/var/named"
LOG="/var/named/chroot/var/log/dnssec_resign.log"
MAILREC="monitor at xx"
#delete old signed files
rm -rf $ZONEDIR/*.signed
#delete the old log
rm -rf $LOG
#read the z...
2017 Feb 01
1
Script not running correctly as cronjob
...ying: set -x
Then set cron to run it and examine the output that gets mailed to you.
The -x tells it to echo each command it is about to execute. That will help you to see how far it is getting.
Further comments below.
Cheers
Tony
> Best regards
> Daniel
>
>
> #!/bin/bash
> KSKDIR="/etc/named/KSK"
> ZSKDIR="/etc/named/ZSK"
> ZONEDIR="/var/named/chroot/var/named"
> LOG="/var/named/chroot/var/log/dnssec_resign.log"
> MAILREC="monitor at xx"
>
> #delete old signed files
> rm -rf $ZONEDIR/*.signed
>
>...
2017 Feb 01
0
Script not running correctly as cronjob
...ying: set -x
Then set cron to run it and examine the output that gets mailed to you.
The -x tells it to echo each command it is about to execute. That will help
you to see how far it is getting.
Further comments below.
Cheers
Tony
> Best regards
> Daniel
>
>
> #!/bin/bash
> KSKDIR="/etc/named/KSK"
> ZSKDIR="/etc/named/ZSK"
> ZONEDIR="/var/named/chroot/var/named"
> LOG="/var/named/chroot/var/log/dnssec_resign.log"
> MAILREC="monitor at xx"
>
> #delete old signed files
> rm -rf $ZONEDIR/*.signed
>
>...