Koozali.org: home of the SME Server

Legacy Forums => Experienced User Forum => Topic started by: Jesper Knudsen on January 06, 2003, 06:35:02 PM

Title: expand templates doesn't work anymore
Post by: Jesper Knudsen on January 06, 2003, 06:35:02 PM
I have used the expand-template many times before but it seems to not function anymore. The below set of commands should insert an entry in the crontab file but it doesn't. I am running 5.5 with Update2

Any clues ?

[root@e-smith ]# mkdir -p /etc/e-smith/templates-custom/etc/crontab/

[root@e-smith ]# echo "0-59/5 * * * * root /etc/mrtg/all-ip" > /etc/e-smith/templates-custom/etc/crontab/mrtg

[root@e-smith ]# /sbin/e-smith/expand-template /etc/crontab

Rgds,
Jesper
Title: Re: expand templates doesn't work anymore
Post by: stephen noble on January 07, 2003, 07:57:02 AM
tail /var/log/messages will tell you if you have a systax error
Title: Re: expand templates doesn't work anymore
Post by: Jesper on January 07, 2003, 03:22:47 PM
I have looked at this (from the server manager though) and it contains no entries that has anything to do with expand-template. It's full of DHCP requests and others but nothing I can use.

Any other places I can search for a clue ?
Title: Re: expand templates doesn't work anymore
Post by: Jesper on January 16, 2003, 05:15:32 PM
aha - some how or another the file "expand-templates" was zeroed. No wonder nothing happened. Having replaced with another from another server fixed the problem.