[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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



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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.