Hi Benjamin,

On Wed, Aug 11, 2010 at 3:31 AM, Benjamin Knoth <[email protected]> wrote:
> Hi all,
> i would like to start fedora as autostart on boot.
> I wrote a simple script which only includes the startcommand.
> I gave the script the execute rights and if i start this script
> manual as root or user fedora it starts.
> But if i save this script in /etc/init.d/rc3.d/S07fedora on SLES 10
> SP2 and restart the system, fedora won't be started on boot up.
>
> Code of the script
>
> #!/bin/sh
> su - tomcat -c /usr/local/fedora/tomcat/bin/startup.sh
>
> What should i do?

I don't know what's causing it to fail to start up, but chances are,
someone has already written an init script for Tomcat for your OS that
you can adapt for this purpose.

If you can't find one that works with SLES on the web, I'd recommend
briefly installing tomcat (5 or 6) with your OS's package manager
(yast?), and copying the /etc/init.d/tomcat* file it creates to
/etc/init.d/fcrepo (or whatever you want to call the service).  Then
uninstall tomcat, and adapt the script to your purpose, changing the
user it runs as, and the chkconfig and/or INIT INFO blocks as desired.

Once that's done, you can use the insserv utility that comes with SLES
and it will create the symlinks for as necessary.

More info on the SLES init process here:
http://www.linuxtopia.org/online_books/suse_linux_guides/SLES10/suse_enterprise_linux_server_installation_admin/sec_boot_init.html

Good luck,
Chris

------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Fedora-commons-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fedora-commons-users

Reply via email to