LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-08-2010, 10:01 AM   #1
tqz
Member
 
Registered: Jan 2008
Posts: 67

Rep: Reputation: 15
Bacula startup at boot


Hello all

How do you get bacula to start at boot. Is it simply a case of moving relevant configuration files to the /etc/init.d dir?

Or did i miss a step when installing and configuring bacula?

I have bacula all up and working so dont want to do anything that may mess up the setup i.e. move files and then find bacula doesnt work no more!

Thanks for any help!

t.
 
Old 02-08-2010, 11:44 AM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
bacula I think, is some sort of backup-manager.

How do you normally start it?
Do you start it as the user root, or as yourself?
Does it need to run all the time, or just when you want to make a backup?
 
Old 02-08-2010, 12:17 PM   #3
kirukan
Senior Member
 
Registered: Jun 2008
Location: Eelam
Distribution: Redhat, Solaris, Suse
Posts: 1,278

Rep: Reputation: 148Reputation: 148
Quote:
Is it simply a case of moving relevant configuration files to the /etc/init.d dir?
keep configuration somewhere in /etc/ directory and /etc/init.d/ usually having startup scripts
 
Old 02-09-2010, 05:37 AM   #4
tqz
Member
 
Registered: Jan 2008
Posts: 67

Original Poster
Rep: Reputation: 15
Hi the startup scripts which i thought would be located in the /etc/init.d/ dir are not there for bacula. I only discovered this after rebooting the system only to find out that no backups were made for that day as the bacula server was down (it wasnt restarted when the server was rebooted.)...

I normally start it via webmin which has the bacula module included or if i do via the command line (rarely) i would change directory to the bacula installation and then issue a command like 'sudo ./bacula start'. Its storage, director and file daemons always run in the background...I would only restart the bacula server maybe to apply changes to the config files or if something went really wrong with the backups...so the bacula server is and should always be running.

Hope this has answered all your questions!
 
Old 02-09-2010, 06:11 AM   #5
tqz
Member
 
Registered: Jan 2008
Posts: 67

Original Poster
Rep: Reputation: 15
I've just placed the bacula script that starts the daemons (the bacula file in the /etc/bacula dir) into the /etc/init.d dir. I'm hoping that this works, but I cant really test without restarting the server which isnt really ideal at the moment. As the postgresql server (which is done at startup) needs to be up and running before the bacula server can start is there anyway that this can be done i.e. after postgresql servers are up and running then execute the bacula server start up script...hope im making sense...
 
Old 02-09-2010, 07:58 AM   #6
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I've just placed the bacula script that starts the daemons into the /etc/init.d dir.
Depending on your distro, you'll need to make symlinks in the appropriate rcX.d dirs, pointing at your startup script, or it won't be run.

Easiest may be to let /etc/rc.local start it up. The commands in rc.local are run (as root) after everything else has started up.

Make sure startupscript is set as executable, and writable only by root.

Then put /path/to/bacula/startscript into rc.local just before the final exit 0

That's it.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Backup using bacula rosv Linux - Server 13 10-29-2011 08:51 AM
bacula on redhat bulldozers Linux - Software 5 10-27-2009 10:25 AM
Bacula and encryption tqz Linux - Newbie 4 10-02-2009 04:12 AM
Bacula bug???? tqz Linux - Newbie 1 08-07-2009 07:59 AM
How to add a boot record which used to startup windows under my Grub boot loader? yunxiang Linux - Newbie 6 02-01-2003 02:22 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 07:06 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration