WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-users

[Xen-users] Re: [fcrepo-user] Autostart-Script

To: Riccardo Valzorio <valzorio@xxxxxxxx>, xen-users@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-users] Re: [fcrepo-user] Autostart-Script
From: Benjamin Knoth <knoth@xxxxxxxxxxx>
Date: Wed, 11 Aug 2010 11:45:34 +0200
Cc:
Delivery-date: Wed, 11 Aug 2010 02:47:38 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <D1456771-6125-4032-998D-89048BEBA6A2@xxxxxxxx>
List-help: <mailto:xen-users-request@lists.xensource.com?subject=help>
List-id: Xen user discussion <xen-users.lists.xensource.com>
List-post: <mailto:xen-users@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-users>, <mailto:xen-users-request@lists.xensource.com?subject=unsubscribe>
References: <4C6251D9.9030102@xxxxxxxxxxx> <D1456771-6125-4032-998D-89048BEBA6A2@xxxxxxxx>
Sender: xen-users-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Mozilla/5.0 (X11; U; Linux i686; de; rv:1.9.1.11) Gecko/20100711 Lightning/1.0b1 Thunderbird/3.0.6
Hi,
thx Riccardo.
I will test it a little bit.
On the first moment i couldn't find fedora on ps aux but after testing
on browser it runs.


Best regards

Benjamin

Am 11.08.2010 10:01, schrieb Riccardo Valzorio:
> Hi,
>
> in attach you can find the script we use to boot Fedora on startup.
> You have to define a start/stop argument to be parsed for the rc.d
> scripts.
>
> Try copy and paste the following code in /etc/init.d/your_file_name
> (...and change all variable' values), then:
>
> - chmod +x /etc/init.d/your_file_name - chkconfig your_file_name on
> (not 100% sure about this command, I'm on Debian :-) )
>
> Hope this helps,
>
> regards
>
> R
>
> ---
>
> #!/bin/bash
>
> RETVAL=$? export JAVA_HOME=/opt/java export JDK_HOME=/opt/jdk
> export FEDORA_HOME=/var/fedora export
> CATALINA_HOME=$FEDORA_HOME/tomcat export JAVA_OPTS='-Xmx512M
> -Xms128M -XX:MaxPermSize=256M -Dfile.encoding=UTF-8
> -Djavax.net.ssl.trustStore=/var/fedora/server/truststo re
> -Djavax.net.ssl.trustStorePassword=tomcat' export
> PATH=$JAVA_HOME/bin:$MAVEN_HOME/bin:$FEDORA_HOME/server/bin:$FEDORA_HOME/client/bin:$PATH
>
>
>
>

case "$1" in
> start) if [ -f $CATALINA_HOME/bin/startup.sh ]; then echo "Starting
> Tomcat" /bin/su unipos -c "$CATALINA_HOME/bin/startup.sh" fi ;;
> stop) if [ -f $CATALINA_HOME/bin/shutdown.sh ]; then echo "Stopping
> Tomcat" /bin/su unipos -c "$CATALINA_HOME/bin/shutdown.sh" fi ;;
> *) echo $"Usage: $0 {start|stop}" exit 1 ;; esac exit $RETVAL
>
>
> On 11/ago/2010, at 09.31, Benjamin Knoth 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?
>>
>> Best regards
>>
>> Benjamin Knoth
>>
>> -- Benjamin Knoth Max Planck Digital Library (MPDL)
>> Systemadministration Amalienstrasse 33 80799 München, Germany
>> http://www.mpdl.mpg.de
>>
>> Mail: knoth@xxxxxxxxxxx Phone:  +49 89 38602 202 Fax:
>> +49-89-38602-280
>>
>>
>> ------------------------------------------------------------------------------
>>
>>

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
>> Fedora-commons-users@xxxxxxxxxxxxxxxxxxxxx
>> https://lists.sourceforge.net/lists/listinfo/fedora-commons-users
>
>
>
>>

---
> Riccardo Valzorio
>
> C.I.L.E.A. Sezione Gestione Sistemi Tel:       02 26995384 Mail:
> valzorio@xxxxxxxx
>
> "A computer is like air conditioning: it becomes useless when you
> open windows." L. Torvalds
>
> GPG Key Fingeprint: BD93 74F3 42E6 B99C D9A1  7202 ABE6 8304 6F9C
> 18B0
>
>


--
Benjamin Knoth
Max Planck Digital Library (MPDL)
Systemadministration
Amalienstrasse 33
80799 München, Germany
http://www.mpdl.mpg.de

Mail: knoth@xxxxxxxxxxx
Phone:  +49 89 38602 202
Fax:    +49-89-38602-280

_______________________________________________
Xen-users mailing list
Xen-users@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-users
<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-users] Re: [fcrepo-user] Autostart-Script, Benjamin Knoth <=