Hi all! I''m trying to install FOG (an opensource ghostlike backup/rollout server) on a centos 5 box but at the end of the isntaller script it can''t find chckconfig altough it''s in /sbn and I run the (redhat specific install) script as root. How can I make sure chckconfig gets found? Tried adding the full path in the script to /sbin/chckconfig but got the same error. Regards, Geert ------------------------------ ------------------------------------------------ * Checking package: perl...OK * Checking package: perl-Crypt-PasswdMD5...OK * Checking package: lftp...OK Configuring services. * Setting up fog user...Exists * Setting up and starting MySql../lib/redhat/functions.sh: line 440: chkconfig: command not found ...Failed! -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.centos.org/pipermail/centos/attachments/20090217/f95e0a95/attachment.html
On Tue, Feb 17, 2009 at 10:25 PM, Geert Batsleer <batsleer at gmail.com> wrote:> Hi all! > > I''m trying to install FOG (an opensource ghostlike backup/rollout server) > on a centos 5 box but at the end of the isntaller script it can''t find > chckconfig altough it''s in /sbn and I run the (redhat specific install) > script as root. > > How can I make sure chckconfig gets found? Tried adding the full path in the > script to /sbin/chckconfig but got the same error. > > Regards, Geert > > ------------------------------ > ------------------------------------------------ > * Checking package: perl...OK > * Checking package: perl-Crypt-PasswdMD5...OK > * Checking package: lftp...OK > > Configuring services. > > * Setting up fog user...Exists > * Setting up and starting MySql../lib/redhat/functions.sh: line 440: > chkconfig: command not found > ...Failed!Try $ export PATH=/sbin:$PATH before running the script> _______________________________________________ > CentOS mailing list > CentOS at centos.org > http://lists.centos.org/mailman/listinfo/centos > >
On Tue, 2009-02-17 at 23:14 +0000, Didi wrote:> On Tue, Feb 17, 2009 at 10:25 PM, Geert Batsleer <batsleer at gmail.com> wrote: > > Hi all! > > > > I''m trying to install FOG (an opensource ghostlike backup/rollout server) > > on a centos 5 box but at the end of the isntaller script it can''t find > > chckconfig altough it''s in /sbn and I run the (redhat specific install) > > script as root. > > > > How can I make sure chckconfig gets found? Tried adding the full path in the > > script to /sbin/chckconfig but got the same error. > > > > Regards, Geert > > > > ------------------------------ > > ------------------------------------------------ > > * Checking package: perl...OK > > * Checking package: perl-Crypt-PasswdMD5...OK > > * Checking package: lftp...OK > > > > Configuring services. > > > > * Setting up fog user...Exists > > * Setting up and starting MySql../lib/redhat/functions.sh: line 440: > > chkconfig: command not found > > ...Failed! > Try > > $ export PATH=/sbin:$PATH > > before running the scriptSince he ran as root, /sbin (OP: note the correct spelling) s/b part of his path already. If that''s the case, the above export will just duplicate the entry (no real harm done though).>From what is shown in the snippet of results, I would _guess_ that somefunction or sub-shell has modified the path or is looking for an application-specific chkconfig? Add a "set -x" just ahead of the command to get a verbose output. Maybe that will give a clue. Also, a "set" or "export" command with no arguments will show the environment. Keep an eye out for anything that modifies the path.> <snip sig stuff>HTH -- Bill
Geert Batsleer wrote on Tue, 17 Feb 2009 23:25:42 +0100:> I run the (redhat specific install) > script as root.what exactly does it have at that line 440? Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com
2009/2/18 Kai Schaetzl <maillists at conactive.com>> Geert Batsleer wrote on Tue, 17 Feb 2009 23:25:42 +0100: > > > I run the (redhat specific install) > > script as root. > > what exactly does it have at that line 440? > > KaiHi Kai, these are lines 133 till 147 ----------------------------- userlist_enable=NO tcp_wrappers=YES" > "$ftpconfig"; chkconfig vsftpd on; service vsftpd restart >/dev/null 2>&1; service vsftpd status >/dev/null 2>&1; if [ "$?" != "0" ] then echo "...Failed!"; exit 1; else echo "...OK"; ----------------------------- Regards, Geert -------------- next part -------------- An HTML attachment was scrubbed... URL: http://lists.centos.org/pipermail/centos/attachments/20090218/ec629dfb/attachment.html
Geert Batsleer wrote on Wed, 18 Feb 2009 10:49:53 +0100:> these are lines 133 till 147The error mentions line 440, not 140. Is this the only chkconfig line in it?> * Setting up and starting MySql../lib/redhat/functions.sh: line 440: > chkconfig: command not foundAlso, that seems to be related to MySQL? I think the error is misleading. I doubt it cannot find chkconfig. It can''t find something else. You can just replace all chkconfig with "/sbin/chkconfig" to prove this. Kai -- Kai Sch?tzl, Berlin, Germany Get your web at Conactive Internet Services: http://www.conactive.com