Linux Help
guides forums blogs
Home Desktops Distributions ISO Images Logos Newbies Reviews Software Support & Resources Linuxhelp Wiki

Welcome Guest ( Log In | Register )



Advanced DNS Management
New ZoneEdit. New Managment.

FREE DNS Is Back

Sign Up Now
 
Reply to this topicStart new topic
> Startup Script..., Specifying a script to run at startup...
rich
post Jul 25 2004, 09:43 PM
Post #1


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 25-July 04
Member No.: 3,425



Hi,
I am rather new to the whole opensourcey linuxey thing, so please be nice blink.gif .

I am running RedHat Enterprise 3 and have recently installed Antivir 2.1.1.

As a means of getting the Antvir Avguard component running I have also recently downloaded Dazuko and configured it to run the Avguard component as a node (using /sbin/insmod) as the Dazuko readme instructs.

The issue I am having is that once Dazuko has been configured and added as a node and the Avguard component installed and configured to run at startup, I test the config by shutting down and restarting the machine to find that the Avguard component has not loaded.

OK, now to the questions:
1. Can I write a script to configure and add Dazuko as a node as a non-su?
2. Can I then specify that script to run as a non-su when the machine boots up?

Any help will be greatly appreciated.
Cheers smile.gif
Rich
Go to the top of the page
 
+Quote Post
hughesjr
post Jul 26 2004, 06:37 AM
Post #2


Its GNU/Linuxhelp.net
*******

Group: Admin
Posts: 3,433
Joined: 25-July 03
From: Corpus Chrsiti, TX, USA
Member No.: 1,151



I don't use these specific products ....

How do you start the service right now (what is the command ... and who is the user).


--------------------
Johnny Hughes
hughesjr@linuxhelp.net
Enterprise Alternatives: CentOS, WhiteBoxEL
Favorite Workstation Distros (in order): CentOS, Gentoo, Debian Sarge, Ubuntu, Mandrake, FedoraCore, Slackware, SUSE
Favorite Server Distros (in order): CentOS, WhiteBoxEL, Debian Sarge, Slackware, Mandrake, FedoraCore, Gentoo, SUSE
Go to the top of the page
 
+Quote Post
rich
post Jul 26 2004, 06:40 PM
Post #3


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 25-July 04
Member No.: 3,425



I am not sure it is running as a service, during installation it asked if it could run at startup to which I answered yes. Now when the machine boots up it does display the avguard startup but an error occurs while it's trying to start stating that it couldn't find /usr/lib/Antivir/Linux-2.4.21-4.EL/dazuko.o...

I am not entirely sure why it is looking to /Linux-2.4.21-4.EL/ as it exists under /usr/src/ rather than /usr/lib/Antivir/???

I have tried adding this component as a service to run on all levels as well but it won't accept it as a legitimate service.

I have since written a little script to run as root whenever the machine starts up but, of course, I need to log in as root run it then logout and log back in as a normal user. Which is entirely inconvenient.

Script is as follows:

'cd /usr/src/kernel-modules/dazuko/
./configure
/sbin/insmod ./dazuko.o
mknod -m 600 /dev/dazuko c $(grep dazuko /proc/devices | sed "s/ .*//") 0
/usr/lib/Antivir/avguard start'

Not sure exactly what this script does, constructed out of readme files listing commands and such, but I do know that it works to get the component running.

Any ideas?

Thanks in advance for your help.
Cheers
Rich blink.gif
Go to the top of the page
 
+Quote Post
adam.stokes
post Jul 26 2004, 07:57 PM
Post #4


./configure
***

Group: Members
Posts: 65
Joined: 22-July 04
From: raleigh, NC
Member No.: 3,403



Try just adding dazuko module to your /etc/modules.conf

this will load that extra module at bootup

or just put

modprobe dazuko in your /etc/rc.local file


--------------------
adam.stokes
Fedora Core rawhide, RHEL WS, ES, AS :)
Red Hat Certified Engineer
Go to the top of the page
 
+Quote Post
rich
post Jul 26 2004, 08:16 PM
Post #5


Whats this Lie-nix Thing?
*

Group: Members
Posts: 6
Joined: 25-July 04
Member No.: 3,425



OK will try that...thanks...

I have actually got it working, through a very ugly means, I created /Linux-2.4.21-4.EL/ under /usr/lib/Antivir/ and copied dazuko.o into it. It has done the job but I am not very happy with it just the same.

Cheers
Rich blink.gif
Go to the top of the page
 
+Quote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



RSS Lo-Fi Version Time is now: 22nd October 2017 - 02:23 PM