openSUSE Forums > Install/Boot/Login » script in autostart of opensuse 11.2?

Go Back   openSUSE Forums > Install/Boot/Login
Forums FAQ Members List Search Today's Posts Mark Forums Read


Install/Boot/Login Questions about installation, login, boot issues, partitioning, file systems, software that runs at boot (GRUB, LILO, boot scripts)

Reply
Page 1 of 2 1 2
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 25-Nov-2009, 09:23
Yukari-chan's Avatar
Puzzled Penguin
 
Join Date: Nov 2009
Location: Cologne
Posts: 21
Yukari-chan hasn't been rated much yet
Question script in autostart of opensuse 11.2?

Hi everybody,

I'm not sure if this is the right sub-forum, but I hope so.

I recently installed mysql-cluster on my servers and now I want to put some commands into the autostart to make things easier.
I use commands like "ndbd" or "ndb_mgmd" to start the services but I think it would be easer if this happens automatically at the system start or login.

I already managed to put mysql into the autostart with "chkconfig mysql on" but this doesn't work with the other services I mentioned.

In another thread I read that it would be possible to create a script containing the commands and put it into the autostart-folder. As folder they used something like /home/user/.kde/autostart but I don't have any similar folder. What do I have to use then?

Thanks in advance,
Yukari
Reply With Quote
  #2 (permalink)  
Old 25-Nov-2009, 09:36
Wilson_Phillips's Avatar
Busy Penguin
 
Join Date: Jun 2008
Location: Natchez, MS, USA
Posts: 437
Wilson_Phillips hasn't been rated much yet
Default Re: script in autostart of opensuse 11.2?

/home/user/.kde/autostart

should be

/home/user/.kde/Autostart Don't miss that upper case A
__________________
Free Fractal Wallpapers
http://wilsonephillips.smugmug.com
Reply With Quote
  #3 (permalink)  
Old 25-Nov-2009, 09:40
Yukari-chan's Avatar
Puzzled Penguin
 
Join Date: Nov 2009
Location: Cologne
Posts: 21
Yukari-chan hasn't been rated much yet
Default Re: script in autostart of opensuse 11.2?

There are neither a .kde nor a Autostart folder, or do I have to create them first?
Reply With Quote
  #4 (permalink)  
Old 25-Nov-2009, 09:43
Wilson_Phillips's Avatar
Busy Penguin
 
Join Date: Jun 2008
Location: Natchez, MS, USA
Posts: 437
Wilson_Phillips hasn't been rated much yet
Default Re: script in autostart of opensuse 11.2?

It's there.

The . before kde makes it a hidden folder. You have to tell the system to show hidden files and folders.
__________________
Free Fractal Wallpapers
http://wilsonephillips.smugmug.com
Reply With Quote
  #5 (permalink)  
Old 25-Nov-2009, 09:44
microchip8's Avatar
Shaman Penguin
 
Join Date: Jun 2008
Location: /dev/belgium
Posts: 2,555
microchip8 has great reputationmicrochip8 has great reputationmicrochip8 has great reputationmicrochip8 has great reputationmicrochip8 has great reputationmicrochip8 has great reputation
Default Re: script in autostart of opensuse 11.2?

Are you on KDE, KDE4 or GNOME?

for KDE (aka KDE3), it's /home/user/.kde/Autostart
for KDE4, it's /home/user/.kde4/Autostart
for GNOME.... no clue, I don't use it
__________________
My site: http://microchip.bplaced.net
My repo: http://download.opensuse.org/repositories/home:/microchip8
SUSE Unbound Forum: http://suseunbound.lefora.com


Do coders dream of sheep() ?
Reply With Quote
  #6 (permalink)  
Old 25-Nov-2009, 09:51
malcolmlewis's Avatar
Global Moderator
 
Join Date: Jun 2008
Location: Podunk
Posts: 5,490
malcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputationmalcolmlewis has great reputation
Default Re: script in autostart of opensuse 11.2?

Quote:
Originally Posted by Yukari-chan
Hi everybody,

I'm not sure if this is the right sub-forum, but I hope so.

I recently installed mysql-cluster on my servers and now I want to put
some commands into the autostart to make things easier.
I use commands like "ndbd" or "ndb_mgmd" to start the services but I
think it would be easer if this happens automatically at the system
start or login.

I already managed to put mysql into the autostart with "chkconfig mysql
on" but this doesn't work with the other services I mentioned.

In another thread I read that it would be possible to create a script
containing the commands and put it into the autostart-folder. As folder
they used something like /home/user/.kde/autostart but I don't have any
similar folder. What do I have to use then?

Thanks in advance,
Yukari
Hi
Are these services that need to be run by the user or mysql/root? If
they are in the latter, you need to look at using
the /etc/init.d/skeleton as it's a template for adding services to
start during boot.

--
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.37-0.1-default
up 3 days 23:08, 2 users, load average: 0.01, 0.04, 0.06
GPU GeForce 8600 GTS Silent - CUDA Driver Version: 190.18

Reply With Quote
  #7 (permalink)  
Old 25-Nov-2009, 09:55
Yukari-chan's Avatar
Puzzled Penguin
 
Join Date: Nov 2009
Location: Cologne
Posts: 21
Yukari-chan hasn't been rated much yet
Default Re: script in autostart of opensuse 11.2?

Erm, I think it should be KDE4

And well... maybe I'm blind but I switched on hidden files and also tried it with the console:


That's why I always wondered about the many threads where the folder you mentioned is told... I seem to don't have it
Reply With Quote
  #8 (permalink)  
Old 25-Nov-2009, 10:02
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,568
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default Re: script in autostart of opensuse 11.2?

That's because you're logging in as root, unless you have a very, very good reason(Unlikely) then there is no reason to.

AFAIK even a server should run with the least privileges. If this is gui-less then I would suspect the advice given by malcomlewis is the way to go.

Edit
Mmm looking over it some presumption on my behalf I'm wrong but still relates to the user, dbserver1 user looks like they haven't logged in to the gui. Got confused by the dir listing as root.
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
  #9 (permalink)  
Old 25-Nov-2009, 10:10
Yukari-chan's Avatar
Puzzled Penguin
 
Join Date: Nov 2009
Location: Cologne
Posts: 21
Yukari-chan hasn't been rated much yet
Default Re: script in autostart of opensuse 11.2?

Mh, I logged in with the user I created at installation and tried to start the service but it didn't work, so I assume that root is required.

I looked into that skeleton you mentioned, but... it's huge ...and I'm a newbie

Maybe I have to read it slowly to understand it, but maybe you could give me a hint how to use it in this case?
Reply With Quote
  #10 (permalink)  
Old 25-Nov-2009, 10:26
FeatherMonkey's Avatar
Wise Penguin
 
Join Date: Mar 2008
Posts: 1,568
FeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura aboutFeatherMonkey has a spectacular reputation aura about
Default Re: script in autostart of opensuse 11.2?

I've not looked but if this a suse rpm I'm surprised you don't already have an init script. The other way to do this would be with sudo yes I do suspect this is related to root permissions, but dbserver1 won't have them either.

I was going to check but I see an rpm for it but only 11.2(11.1 here), does it really not show a runlevel choice, or is there perhaps a config?

What I'm saying is I'm surprised there is a need to write a init script for a suse rpm.

So if this is really needed then you have 2 ways either use a sudo command but be aware of the security implications, or create an init script. I can't help as I've not done it but the skel should be a start then also look at some of the others. I thought there was also a page on the wiki but I couldn't find but only briefly looked.
__________________
Man first, have a try at Info, have a look at Wiki, if all that fails Scroogle!!!!!
If I've helped click on the Rep button I don't know what it does but it sounds cool.
Reply With Quote
Reply
Page 1 of 2 1 2

Bookmarks


Thread Tools
Display Modes

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 On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




 

Search Engine Friendly URLs by vBSEO 3.3.2