LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-24-2006, 02:36 PM   #1
matrix849
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Rep: Reputation: 0
Creating A Service


alright 2 big questions. Question one:

I have a program that I want to run as a service but it does not have a "make install" or something of that nature, i just have the file name.... how can i incorporate that program to start everytime the machine does as a service.

Also another uber noob question ".bz2" how do i unzip this.

Please keep in mind this is day 1 of my use of a linux operating system, so be kind and be specific.


Thanks
 
Old 03-24-2006, 03:17 PM   #2
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
I'm not real clear on what you mean by the first question. Could you give a more detailed explanation of what you're trying to do.

For the second use the command bunzip2 [name of file]
 
Old 03-29-2006, 09:48 AM   #3
matrix849
LQ Newbie
 
Registered: Mar 2006
Posts: 2

Original Poster
Rep: Reputation: 0
I want a certain porgram to launch every time the machine starts up so that I don't have to go in and do it manually.... So if there was a power interuption, or I had to restart the server, the program would reload.
 
Old 03-29-2006, 09:53 AM   #4
shorun
Member
 
Registered: Mar 2006
Location: belguim
Distribution: fedora, mandriva, suse
Posts: 148

Rep: Reputation: 15
Quote:
Originally Posted by matrix849
I want a certain porgram to launch every time the machine starts up so that I don't have to go in and do it manually.... So if there was a power interuption, or I had to restart the server, the program would reload.
if you got webmin you can edit your runelevels in a real user-friendly way.

but the q is simple, you just want a command to be run when the system starts, correct?


and for the bz2, try tar -jxf filename

i think that should do the trick but i'm not really sure.
 
Old 03-29-2006, 09:22 PM   #5
mcmillan
Member
 
Registered: Jul 2005
Distribution: Arch
Posts: 489

Rep: Reputation: 30
So I'm still a little confused, from the first post you mentioned there not being make install, which made me think you were still trying to install the program. If you're having trouble installing, some things have slightly differnt methods of installation, you should look for a README file or some instructions that came with what you downloaded to see if there's some difference you need.

As for making it run when you start, I think this varies a little bit for some distros, if you tell us what you use we could maybe be a bit more help.
 
Old 03-29-2006, 10:57 PM   #6
Ellops
Member
 
Registered: Nov 2005
Location: ath.gr
Distribution: Slackware 11.0 / 2.6.19.1 /Linux Mint
Posts: 124

Rep: Reputation: 15
Well I havent understan what u mean either...

have you installed this program?

u could try this, however..

go to etc/rc.d, u should see other progs that start with boot, eg rc.httpd or rc.alsa

make a file rc.myprogram
open it and add the path to binary eg: /usr/local/bin/myprog

and then make your file executable
Code:
chmod 755 /etc/rc.d/rc.myprogram
or
Code:
chmod +x /etc/rc.d/rc.myprofram
however, it depends it ur distro, if itll work...

Last edited by Ellops; 03-29-2006 at 11:00 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
creating own service cranium2004 Programming 1 03-02-2005 09:11 PM
creating own service cranium2004 Linux - Newbie 1 03-02-2005 09:00 PM
/sbin/service is empty every weekend and changed to service.1 LineS Linux - General 0 05-24-2004 02:08 AM
creating a RH9 startup service fritz101 Red Hat 3 12-20-2003 10:30 AM
Creating a Service JCScoobyRS Linux - General 40 03-03-2003 05:20 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:45 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