[prev in list] [next in list] [prev in thread] [next in thread] 

List:       webmin-l
Subject:    Re: [webmin-l] /etc/webmin/package-updates/update.pl script does not exist and cron job fails as a r
From:       Ben Johnson <ben () indietorrent ! org>
Date:       2013-06-13 2:28:09
Message-ID: 51B92E39.6080805 () indietorrent ! org
[Download RAW message or body]



On 6/10/2013 4:50 PM, Jamie Cameron wrote:
> On 10/Jun/2013 09:38 Ben Johnson <ben@indietorrent.org> wrote ..
>> Hello,
>>
>> Recently, I began noticing the following output from a cron job,
>> /etc/webmin/package-updates/update.pl:
>>
>> /bin/sh: /etc/webmin/package-updates/update.pl: not found
>>
>> Has this script, /etc/webmin/package-updates/update.pl, been obsoleted
>> and removed from Webmin? If so, I wonder why the Webmin update process
>> did not remove this cron entry. (Maybe Webmin didn't create it in the
>> first place, in which case failing to remove it makes sense.)
>>
>> Curiously, I have two other systems that are nearly-identically
>> configured, and this script *does* exist on one of the three servers.
>> Its contents are as follows:
>>
>> --------------------------------------------------------
>> #!/usr/bin/perl
>> open(CONF, "/etc/webmin/miniserv.conf");
>> while(<CONF>) {
>>         $root = $1 if (/^root=(.*)/);
>>         }
>> close(CONF);
>> $ENV{'PERLLIB'} = "$root";
>> $ENV{'WEBMIN_CONFIG'} = "/etc/webmin";
>> $ENV{'WEBMIN_VAR'} = "/var/webmin";
>> chdir("$root/package-updates");
>> exec("$root/package-updates/update.pl", @ARGV) || die "Failed to run
>> $root/package-updates/update.pl : $!";
>> --------------------------------------------------------
>>
>> My OS is Ubuntu 10.04 LTS and my Webmin version is 1.630 (on all three
>> servers).
>>
>> Thanks for any help in determining whether this script should in fact be
>> run on schedule or not.
>>
>> If yes, then the more important question becomes, how did these script
>> files disappear on several of my machines in the first place?
> 
> It's odd that the update.pl script would disappear like that.
> 
> To fix it, go to System -> Software Package Updates and click "Save" in the
> "Scheduled checking options" form.
> 
>  - Jamie
> 

Thanks for the quick reply, Jamie.

Weirder still that it happened on several different servers, but indeed,
your suggestion fixed the problem.

I'll keep an eye on that file going forward and let you know if I see it
disappear again.

Best regards,

-Ben


------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev
-
Forwarded by the Webmin mailing list at webadmin-list@lists.sourceforge.net
To remove yourself from this list, go to
http://lists.sourceforge.net/lists/listinfo/webadmin-list
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic