How to start Jive Jabber server as a daemon?

Hi,
Im running a Jive Messenger server, and i cant get it to start as a service with the provided script.
Here is some background:
Its a java based server, i decompressed it to /opt.
To start the server i run /opt/jive/bin/messenger start
There is a script in /opt/jive/bin/extra called: jive-messegerd
Here are the instructions included in the script:
# jive-messengerd
# chkconfig: 2345 20 80
# description: Used to start and stop the jive messenger XMPP server
# Script used to start jive messenger as daemon
# The script has currently been tested on Redhat Fedora Core 3,
# but should theoretically work on most UNIX like systems
# before running this script make sure $MESSENGER_HOME/bin/messenger is
# executable by the user you want to run messenger as
# (chmod +x $MESSENGER_HOME/bin/messenger)
# This script should be copied into /etc/init.d and linked into
# your default runlevel directory.
# You can find your default runlevel directory by typing:
# grep default /etc/inittab
# Link to the directory like follows
# cd /etc/rc<num>.d
# ln -s ../init.d/jive-messengerd $90jive-messengerd
# Set this to tell this script where messenger lives
# If this is not set the script will look for /opt/jive_messenger, then /usr/local/jive_messenger
#export MESSENGER_HOME=
# If there is a different user you would like to run this script as,
# change the following line
As you  can see, there are a few differences between FC and Arch run levels directories.
As in Arch we dont have runlevel directories, i did the following:
I copied the file to /etc/rc.d/ and added it to rc.conf after all the other daemons... Its not working.
Any ideas on how to do it?
Any help would be really appreciated!
Thanks!
Edit: Updated done steps

sud_crow wrote:I used /opt because i throw everything there, Arch uses it for some pkgs, so i didnt see a problem with that... and i like to keep most of the things in the same place. Is there a problem with that? i mean, can have some bad consecuencies?
No bad consequences - it's just not the Arch way. Arch uses /opt for large suites of software, like gnome, kde, mozilla, etc. Anything smaller goes in /usr. It's your choice, though, at the end of the day.
sud_crow wrote:I was hoping someone could tell me how to adapt the runlevels thing, so i could use the provided script...
Alright, alright...
You're right to put it in /etc/rc.d, you just need some changes to the script itself. The script exports two variables at the start - MESSENGER_HOME and MESSENGER_USER (MESSENGER_HOME is commented by default). If you leave them as they are, the script will look for /opt/jive_messenger first, then/usr/local/jive_messenger, and then will try to run the program as user 'jive'. If I'm not mistaken, you've put it in /opt/jive, as per your first post, and I'm going to take a guess that you have not created user 'jive'.
So - change
#export MESSENGER_HOME=
to
export MESSENGER_HOME=/opt/jive
and change
export MESSENGER_USER=jive
to
export MESSENGER_USER=<your_user_name>
or else create the 'jive' user.
Let us know how it goes.

Similar Messages

  • How to start Oracle Application Server 10g on Linux

    Hi,
    I have installed the Oracle Appliacion server and Infrastructure server on Linux. Both I have installed under with Diff. folder
    Can some one please tell me how to start / stop Appliacion server and Infrastructure server on Linux
    We are going to use the these with Oracle EBS 11.5.10.2 .
    Oracle EBS 11.5.10.2 installed in the same Linux server under diff. folder
    Can some one please guide me.
    Thanks,

    You can do as rizla said or go another route.
    We setup profiles to use for all of the oracle homes. Then in the scripts we call the profiles. Easier to migrate and manage in my opinion if you have multiple oracle homes. You can then use profiles when ssh'd into the boxes, too. Both ways will work.
    Example:
    Script which you can chkconfig.
    #!/bin/sh
    # oracle_collabInfra
    # This shell script takes care of starting and stopping Oracle Collab Infra instance.
    #chkconfig: 345 96 14
    # Source function library.
    . /etc/rc.d/init.d/functions
    RETVAL=0
    start () {
    echo $"Starting Collab Suite on the Infra instance..."
    echo $"Starting Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl start"
    sleep 10
    echo $"Starting Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    startup;
    exit;
    sleep 10
    echo $"Starting Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl start iasconsole"
    sleep 5
    echo $"Starting Infra OID and OC4J_Security processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OID"
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=OC4J_Security"
    echo $"Starting Infra HTTP_Server processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl startproc process-type=HTTP_Server"
    return $RETVAL
    stop () {
    echo $"Stopping Collab Suite on the Infra instance..."
    echo $"Stopping all Infra OPMN managed processes..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; opmnctl stopall"
    sleep 5
    echo $"Stopping Enterprise Manager Application Server Control..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; emctl stop iasconsole"
    sleep 10
    echo $"Stopping Metadata Repository..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; sqlplus '/ as sysdba' <<!
    shutdown immediate;
    exit;
    sleep 10
    echo $"Stopping Listener..."
    runuser - oracle -c ". /home/oracle/.collabInfra_profile; lsnrctl stop"
    return $RETVAL
    restart () {
    stop
    start
    RETVAL=$?
    return $RETVAL
    # See how we were called.
    case "$1" in
    start)
    start
    stop)
    stop
    restart)
    restart
    echo $"Usage: $0 {start|stop|restart}"
    RETVAL=1
    esac
    exit $RETVAL
    profile:
    export ORACLE_BASE=/opt/oracle
    export ORACLE_HOME=$ORACLE_BASE/collabInfra
    export ORACLE_SID=orcl
    export TMP=/tmp
    export TMPDIR=/tmp
    export LD_LIBRARY_PATH=$ORACLE_HOME/lib
    export PATH=/bin:/usr/bin:/usr/sbin:/usr/bin/X11:/usr/kerberos/bin:/usr/local/bin:/usr/X11R6/bin:$HOME/bin:$ORACLE_HOME/bin:$ORACLE_HOME/opmn/bin:$ORACLE_HOME/dcm/bin:$ORACLE_HOME/backup_restore
    unset USERNAME

  • How to start the Message Server?

    Hi,
    I wish to start the J2EE engine and for the same it is mandatory to start the Message Server first.
    In order to start the message server, I run the following command:
    <i><b>D:\usr\sap\J2E\SYS\exe\uc\NTI386>msg_server start
    msg_server=>sapparam(1c): No Profile used.
    msg_server=>sapparam: SAPSYSTEMNAME neither in Profile nor in Commandline
    [Thr 7972] Wed Jul 25 23:39:18 2007
    [Thr 7972] *** ERROR => MsSetWorkDir: chdir D:\usr\sap
    D00\work [msntserv.c   170]
    [Thr 7972] *** ERROR => MsSPrvInit: MsSetWorkDir [msntserv.c   87]
    [Thr 7972] *** ERROR => mainU: MsSPrvInit [msxxserv.c   1634]</b></i>
    I gave my best time to search for Profile configuration details. But I could not do that.
    <b>Can  somebody tell me how to start the Message Server?</b>
    regards,
    Anand

    Hi Anand,
    Will be good to know what OS are you using...
    If you're tryng to start an instance use <prompt>: startsap pf=<profile of the system you want to start>
    If you logon as <sid>adm just type startsap
    If for some reason you need to start only the message server try  <prompt>: msg_server start pf=<profile of the system you want to start>
    Regards
    Juan
    Please reward with points if helpful

  • How to start the oc4j server

    I install oracle 9ias 9.0.3,but i don't know how to start the oc4j server.
    thanks for any help?

    hi
    Refer "Starting and Stopping OC4J" from
    http://otn.oracle.com/tech/java/oc4j/doc_library/902/A95880_01/html/toc.htm
    hope this helps.
    shrini

  • How to start Enterprise Manager Server on  Linux

    I install successful oracle 9i on redhat 7.2 Linux ,but I don't know how to start Enterprise Manager Server on Linux ,please help me ,thanks!

    oemctrl start oms
    oemctrl status oms sysman/oem_temp
    oemctrl stop oms sysman/oem_temp

  • How to start streaming from server side after applet initialized on client

    Hi,
    I am using JSP for on demand streaming server.
    I have included an applet in jsp page which start new player on client side after on streamreceive event.
    But my problem is how to give call to server that applet on client side has been initialized and now streaming can go on.
    Is there any method / way to call class file which will start streaming?

    Oracle is designed to support connection from client to server. The client originates the connection.
    If you want the server to initiate the connection, you need to make the server pretend it is a client. Oracle even does this internally, when they want to use 'External Procedures'
    You may also use Oracle's Message Queue mechanism, called 'Advanced Queueing' to use a 'publish subscribe' model instead of a connection model. That is discussed in the Advanced Queue manual in the documentation at http://docs.oracle.com
    Finally, you can explore the possibility of using RMI from the database, as discussed in the Java related documentation at the same location.

  • How to Start/Stop from Server Manager

    Hello,
    I am trying to figure out how to start/stop/restart my coldfusion servers from server manager.  I have seen the instruction at this link:
    http://help.adobe.com/en_US/ColdFusion/9.0/Admin/WSfd7453be0f56bba4-2a6b48f122a6582c7f-7ff e.html
    However it mentions "place the jrunappstartup.war file under the directory <CF_Home>/runtime/servers/admin"
    I do not know where to get this file from.  Please help!
    I am running ColdFusion standalone.
    Any help is much appreciated,
    Thanks,
    David

    An update to eariler posting. Configure CF9 Enterprise multiserver.
    Likewise unable to find jrunappstartup.war file mentioned.
    If I follow the instructions and try configure the SM Start Stop Details the Start Stop Restart
    does not become an highlighted option.
    Here are a couple screen cuts for interested readers-
    Start Stop Details (are these correct Jrun items to fill in?):
    Unable to restart from SM:
    Regards, Carl.

  • How to start/stop report server?

    Dear memebers,
    when i restart my machine the report don't run. and give the following errro: frm-41213 unbale to connect to the report server.
    how to start/stop the report server?
    i have installed the DS 10g.
    Thanks
    Muhammad Nadeem
    [email protected]

    I try to find same solution from three month , i think first you intsall report server
    and check that if in server/conf folder rep_<hostname> file is there than your report is running with in process method in that you are not able to run report with report server , if you get solution than please give me the same

  • How to setup a Jabber server?

    Hi,
    I want to setup a Jabber server on my Archlinux machine for a couple of friends of mine to use for some personal group communication. What package can I install for such a server? I'm hoping it's easy to setup, so that's a bonus. Thanks in advance.

    ejabberd is rather nice for a begginer admin/operator. I can't say anything about the quality of the provided package in [community]. Ejabberd is also distributed as a one-click-install binary which you can (with all contents) install somewhere like /opt or /usr/local/opt, and there is also a video available on process-one site which shows you how to install and setup ejabberd in under 5 minutes with it (which should tell you something about "ease of use"). For everything from installation to configuration and operating read the Ejabberd operation guide: http://www.process-one.net/en/ejabberd/guide_en

  • How to start the admin server on another WLS machine?

    Hi,
              I have a weblogic cluster with 2 weblogic machines: machineA and machineB.
              The cluster contains 4 managed servers (2 on each WLS machine)
              The admin server runs on machineA (standalone).
              I have a file backup of the domain directory on machineA.
              Suppose machineA crashes.
              How can I start the admin server on machineB?
              Kind regards,
              Pieter

    Thanks for your reply,
              I know how to (re)start the admin server on machineA. But in this case I want to start the admin server on machineB.
              The documentation says:
              Restarting an Administration Server on Another Machine
              If a machine crash prevents you from restarting the Administration Server on the same machine, you can recover management of the running Managed Servers as follows:
              Install the WebLogic Server software on the new administration machine (if this has not already been done).
              Make your application files available to the new Administration Server by copying them from backups or by using a shared disk. Your application files should be available in the same relative location on the new file system as on the file system of the original Administration Server.
              Make your configuration and security data available to the new administration machine by copying them from backups or by using a shared disk. For more information, refer to Directory and File Backups for Failure Recovery.
              Restart the Administration Server on the new machine.
              Simply starting the admin server on the other machine does not work because it tries to start the admin server on the ip address of the old machine.
              Edited by [email protected] at 05/10/2007 7:47 AM

  • How to start the temp server

    Hi experts
    Whether it is possible to copy the data of all disk in SAP server to another standby server with different hardware configuration ( without installing SAP only copying data from one server to another server retaining the IP id and hostname same) i want to activate in the stanby server whee we coied the SAP datas. what is the procedure do as it is??
    bala

    hi ruchit
    i will describe the full text here. the sap server the os is crashed. with the vendor we got the standby server and installed the OS and partitioned the disk in to three logical partition. now we have copied the data from crashed server to their respective disks. now i want to start / initiate the server which data has been dumped from the old one. at present we want recover the SAP by some sort of settings / registries so to avoid the New SAP installation time.Here i need that how to enable all the services from this dump and make the SAP work. where we have maintained the Hostname and IP address is the same. could u tell me the steps involved in it.
    bala

  • How to start I/O server programmatically

    Dear All,
    I write a vi to create shared variables and Modbus TCP server with in a process programmatically.  After running this vi, In Distribution System Manager window, all the shared variable is there but modbus io server is not running!
    When I right click the modbus io server node in Distribution System Manager window, select edit io server, left click on OK button to close Configure Modbus I/O Server window without any change, after unfolding modbus io server node the modbuse  io server is running!
    I have use Enable Process VI  to run the process. Do I have to do anything to start I/O server?
    I use LaView 2011 with DSC module.
    Regards,
    Jonathan

    Could you please post your VI here?

  • How to start the osb server

    Hi please help me on this

    Hi Vijay,
              Before starting the OSB Server i need small clarification,
    While OSB Domain Creation what option ur selected i.e. either OSB Developer or Just OSB,
    If ur Selected OSB Developer then,
    goto Your Installation Directory Like Oracle-->Middleware-->User_Projects-->Applcations(Domains)-->Double Click on Ur Domain Name-->Double Click on StartWebLogic.cmd
    If ur Selected only OSB then,u need to follow the below 2 steps
    1) goto Your Installation Directory Like Oracle-->Middleware-->User_Projects-->Applcations(Domains)-->Double Click on Ur Domain Name-->Double Click on StartWebLogic.cmd
    2) copy the Path like Oracle/Middleware/User_Projects/Applcations(Domains)/Servers,
    open cmd and paste here, after that,
    Oracle/Middleware/User_Projects/Applcations(Domains)/Servers/StartManagedWeblogic.cmd osb_server1&.
    Hope it will help you.....
    Regards,
    Kiran

  • How to start and stop server?

    This is a design issue that may not belong in this forum, but bear with me, please.
    I have a stand-alone RMI server that I start thusly:
    public class StartServer {
        public static void main( String[] args )
            AppContext context = Server.getContext();
            String name = context.getProperty("dbServerRegistryName", String.class );
            String policyFile = context.getProperty("securityPolicy", String.class );
            System.setProperty("java.security.policy", policyFile );
            if( System.getSecurityManager() == null) {
                System.setSecurityManager(new RMISecurityManager());
            Registry registry = null;
            try {
                ServerImpl server = context.getObject( ServerImpl.class );
                server.initialize();
                registry = LocateRegistry.getRegistry();
                 * Use a stub when the server doesn't extend UnicastRemoteObject.
                Server stub =
                    (Server)UnicastRemoteObject.exportObject( server, 0);
                registry.rebind( name, stub );
                stdout.println("Server is ready.");
            }  catch( Throwable ex )  {
    }The server continues to run in the main thread when main() ends, which is okay I suppose.
    Now I have another class that stops it:
    public final class StopServer {
        public static void main( String[] args )
           /* Same setup code */
            try {
                Server server = (Server)Naming.lookup( name );
                if( server.pollReady() )  {
                     * Remote method requiring admin login to execute.
                     * Tells the server to quit.
                    if( server.stop( uName, pwd, delay ) )  {
    // unbind?
            }  catch( Throwable ex )  {
            System.exit( result );
        }                                       // main()
    }The crux of the question is, how should I quit once inside the running server?
        public final synchronized boolean stop ( final String uName, final String pwd, final long millis )
        throws RemoteException, InterruptedException { 
    // TODO  login
            Thread.currentThread().wait( millis );
            Thread.currentThread().interrupt();
    }The server is single-threaded in that it runs the calling thread to completion - there are no spawned or worker threads.
    Does this approach seem reasonable or is there a better technique?

    The server continues to run in the main thread when main() ends, which is okay I suppose. That's what it's meant to do.
    public final synchronized boolean stop ( final String uName, final String pwd, final long millis )
    throws RemoteException, InterruptedException { 
    // TODO  login
    Thread.currentThread().wait( millis );
    Thread.currentThread().interrupt();
    }Does this approach seem reasonable or is there a better technique?That won't stop the server, so no it's not reasonable.
    You should call UnicastRemoteObject.unexportObject(this, true). You don't need the 'millis' argument to this method.

  • How to start oracle database server and client in windows 8

    Hi at all
    I'm a new entry in this forum and I'm a beginner with database oracle.
    I used always SQL Server as database and it was easy to use after installation.
    With SQL Server configuration management program I could to launch the SQL Server (SQLEXPRESS) service and the database server start up!!
    With SQL Server management studio I could to launch the client application, then was establishing a connection to the server and all was working fine!
    Now, how to work with oracle database?
    I installed oracle server and client version 11g R2 on windows 8, but how can I start the server database? .. and how can I start the client application for querying?
    regards in advance.
    P.S.: Sorry for my english. 

    SomeoneElse
    thanks for the response.
    I setting the service to start manually because otherwise windows is slow to startup.
    In particular I have precisely this oracle service on my operating system after installation.
    - ) OracleVssWriterSYSDBA
    - ) OracleDBConsolesysdba
    - ) OracleJobSchedulerSYSDBA
    - ) OracleMTSRecoveryService
    - ) OracleOraDb11g_home1ClrAgent
    - ) OracleOraDb11g_home1TNSListener
    - ) OracleServiceSYSDBA
    What are the services that start the server and I have to launch?
    What is the client program in menu --> start -- > all program --> Oracle - OraClient 11g home..... that I have to use for querying database?
    thanks.

Maybe you are looking for

  • How to activate buttons on SE51

    Good day to all. I am a newbie in ABAP, and as I went through SE51, I found some buttons are disabled. Can anyone help me please to activate these buttons? Disabled buttons: 1. Tabstrip control wizard. 2. Table control wizard. My version of SAP is 7.

  • OS X Mavericks 10.9.5 and Safari 7.1

    Surely by now there must be skins, themes or personas available for Safari. Right? Where can I find them? I have a vision problem and need a black background with white, cyan, green or similar text. If no skins/themes/personas how can I get this. I'd

  • BI Apps Financial

    HI All, I'm configuring GL segment configuration file in financial analytics...it's src file file_glacct_segment_config_source_system .csv we have only one COA id and 7 segments with value set id's. I configured a single row with COA id and segment w

  • Mitel VoIP phone

    Hi I am trying to set up a VoIP phone using a VPN on tunnel back to our office bt help says infinity does not support this does this make  sense is there a work around or different router I can use?

  • LiveCycle Error

    I am getting this error when I open my form. All I'm trying to do is calculate the sum of a few fileds to a totals field. Any suggestions?