LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Suse/Novell
User Name
Password
Suse/Novell This Forum is for the discussion of Suse Linux.

Notices

Reply
 
Search this Thread
Old 02-16-2009, 09:44 AM   #1
bjh
Member
 
Registered: Oct 2007
Posts: 41

Rep: Reputation: 15
start app as root at startup?


I'd like to start an app called dualserver as root at suse 10.x startup.(Like running as a service in WinXP) How do I do that?

Thanks,

Brian H.
Uxbridge Ont
 
Old 02-16-2009, 10:03 AM   #2
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi,

You should be able to do that by using the init script which should have been installed with the program in /etc/init.d or you could just add the command in /etc/rc.local if suse has one.
 
Old 02-16-2009, 10:39 AM   #3
metrofox
Member
 
Registered: Jan 2009
Location: Palermo, Italy
Distribution: Slackware
Posts: 236

Rep: Reputation: 37
Does your suse uses kde? If yes you can copy the executable file inside of .kde/autostart. I guess, but I don't know if you already use a root user. Bye.
 
Old 02-16-2009, 01:56 PM   #4
bjh
Member
 
Registered: Oct 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Quote:
Does your suse uses kde? If yes you can copy the executable file inside of .kde/autostart. I guess, but I don't know if you already use a root user. Bye.
Thanks but I want it to run at system boot. The .kde/autostart seems to start it when the user logs on. No?

Quote:
You should be able to do that by using the init script which should have been installed with the program in /etc/init.d or you could just add the command in /etc/rc.local if suse has one.
I have tried this, and also have created a 2 line script that starts the app and put it into /etc/init.d . Owner is root and the file is executable. When I reboot however, the app does not start.

Code:
#!/bin/bash

/opt/dualserver/rc.dualserver start
Where am i going wrong?

Thanks,

Brian H.
 
Old 02-16-2009, 02:27 PM   #5
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Quote:
I have tried this, and also have created a 2 line script that starts the app and put it into /etc/init.d . Owner is root and the file is executable. When I reboot however, the app does not start.
You can't just put the above script in /etc/init.d, you have to create links to in in the rcX.d directories to stop and start on different init levels. Have you done this?
 
Old 02-16-2009, 02:55 PM   #6
bjh
Member
 
Registered: Oct 2007
Posts: 41

Original Poster
Rep: Reputation: 15
Apparently there is more to this than I realized.

Quote:
you have to create links to in in the rcX.d directories to stop and start on different init levels. Have you done this?
No I haven't. How do I know which is the appropriate rcX.d to use?

Sorry new to Linux.

Thanks,

Brian H
 
Old 02-18-2009, 07:24 AM   #7
eco
Member
 
Registered: May 2006
Location: BE
Distribution: Debian/Gentoo
Posts: 412

Rep: Reputation: 48
Hi,

Sorry for late reply.

this document might help understand init levels.
 
  


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
bash - start app, [do stuff], kill started app MiniMe001 Programming 3 03-19-2008 04:06 PM
Fluxbox startup script.......... App requires root. DraaX Slackware 2 11-28-2004 09:27 AM
Running an app in startup. fulat2k Mandriva 3 08-09-2004 06:28 PM
makeing an app start at fluxbox startup sethgeekx86 Linux - Software 3 06-11-2004 05:54 AM
RH 8.0, run app on startup? rivethead Linux - Software 1 02-04-2003 02:19 PM


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

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration