Click to See Complete Forum and Search --> : chkconfig


TechGuy
01-11-2001, 10:20 PM
I am trying to run the following command from the command line:

chkconfig --add firewallss --level 2345

I keep getting "Command not found"

What's wrong?

A_Lawn_GNOME
01-11-2001, 10:50 PM
Is Bash giving you this error? Check your path.

TechGuy
01-11-2001, 11:15 PM
This worked:

exec /sbin/chkconfig --add firewallss

Thanks

TechGuy
01-11-2001, 11:28 PM
Ok now I think it's running...How do I verify that it's actually running?

A_Lawn_GNOME
01-11-2001, 11:36 PM
What exactly is firewallss?

It sounds like a frontend script for ipchains (Linux's firewall). If that is the case, run /sbin/ipchains -L . If it is a normal program, run "ps -A | grep firewallss".

TechGuy
01-11-2001, 11:42 PM
Yes it's a script for ipchains. I ran what you said and it replied:

Input:ACCEPT
Forward:ACCEPT
Output:ACCEPT

This means it's running?

A_Lawn_GNOME
01-11-2001, 11:46 PM
Nope, find the script, change to that directory, and run it like ./firewallss start (might be ./firewallss --levels 2345 start or something, this is a really weird script). Alternatively, you can just reboot but that's the Windows way.

TechGuy
01-12-2001, 12:00 AM
So if I reboot, how do I tell then if it's running?

A_Lawn_GNOME
01-12-2001, 12:12 AM
Run "/sbin/ipchains -L" again. If there are no rules listed then you must have run chkconfig wrong or the script is broken entirely.

My honest advice would be to blow off chkconfig entirely and just put firewallss in /etc/rc.d/init.d and make a symlink like "ln -s /etc/rc.d/init.d/firewallss /etc/rc.d/rc3.d/S09firewallss" Provided you boot to console, if it's a graphical login replace rc3.d with rc5.d .

TechGuy
01-12-2001, 01:19 AM
It's running. What good it's doing is another matter...hah! But I'm learning!

Thanks alot!