You are not logged in.

#1 2005-07-07 23:45:57

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Starting programs at boot

I run bacula as my backup software, and would like it to start automatically at boot.  They have a method to install the scripts in a system that uses init.d; info from the website is as follows:

"The make install-autostart will cause the appropriate startup scripts to be installed with the necessary symbolic links. On RedHat Linux systems, these scripts reside in /etc/rc.d/init.d/bacula-dir /etc/rc.d/init.d/bacula-fd, and /etc/rc.d/init.d/bacula-sd. However the exact location depends on what operating system you are using."

Everything I've been finding on similar topics talks about init.d.  Can someone fill me in on the difference between this system and arch's system?

Offline

#2 2005-07-07 23:51:09

Snowman
Developer/Forum Fellow
From: Montreal, Canada
Registered: 2004-08-20
Posts: 5,212

Re: Starting programs at boot

Arch use /etc/rc.d for startup scripts/daemons. Copy the scripts in /etc/rc.d and add them to the DAEMONS array in rc.conf

Offline

#3 2005-07-08 06:28:35

deficite
Member
From: Augusta, GA
Registered: 2005-06-02
Posts: 693

Re: Starting programs at boot

I don't know much about RH's init.d scripts but I'm not sure if you can just copy them into /etc/rc.d/ and add them to the daemons list. Have you looked in the init.d scripts it provides you timm? If so, you can probably figure out what they are doing and then look at some of arch's rc.d scripts and figure it out. Arch's rc.d scripts are very very straightforward if you look at examples of them.

Offline

#4 2005-07-08 07:08:29

iphitus
Forum Fellow
From: Melbourne, Australia
Registered: 2004-10-09
Posts: 4,927

Re: Starting programs at boot

Yes you can just copy paste them.

99% of the initscripts out there are just run with 'start' or 'stop' passed as parameters, and all the arch boot does, is run each initscript in the daemons line with start as a parameter. On shutdown, it passes stop.

Just drop em in, sure the formatting may not match, but it should just work smile

iphitus

Offline

#5 2005-07-10 06:22:30

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Re: Starting programs at boot

I was working on getting bacula up, and ran across a part of the instructions that say that the auto-start scripts will only be generated if your system is a "supported" one, if the config script returns an unknown system, they won't generate.  Arch is "unknown", and I'm not finding where to manually change this in the config files to try to force it.

I love bacula when I get it running, but find installing it to be a major pain.

Offline

#6 2005-07-10 07:34:57

Karma XXL
Member
From: Budapest, Hungary
Registered: 2005-06-13
Posts: 91

Re: Starting programs at boot

If you know what each script does, you can try adding those commands in /etc/rc.local.

I'm not sure about running commands at shutdown, I'm sitting at a windows-only box at the moment.


Ailen:
Kernel: Linux 2.6.14-rc4-ck1 #1 PREEMPT
Built on: Mon Oct 17 14:51:37 CEST 2005
Hardware: Mobile AMD Sempron(tm) Processor 2800+ AuthenticAMD
WM: E17 snapshot 20051016

Offline

#7 2005-07-10 13:23:03

dtw
Forum Fellow
From: UK
Registered: 2004-08-03
Posts: 4,439
Website

Re: Starting programs at boot

i think - if you give use the src URL and any PKGBUILD you are using - we can make a nice Arch pkg of this with a proper daemon to start it all up

Offline

#8 2005-07-10 16:36:29

timm
Member
From: Wisconsin
Registered: 2004-02-25
Posts: 417

Re: Starting programs at boot

I've never built a package before, but while I was working on the install I thought I'd look at it and see how to do it with this one, but I'm new enough at the whole thing that I couldn't yet figure it out.  Keep learning tongue

I'm not sure if this is what you're asking, but bacula is at

http://sourceforge.net/project/showfile … p_id=50727,

there's the main program and the dependency packages and other stuff.

Offline

Board footer

Powered by FluxBB