...
Calling shutdown from the console
Code Block language none title Shuts down with a prompt ddf@local>shutdown
Code Block language none title Force Shutdown without prompt ddf@local>shutdown -f
Running the stop script
Code Block title *NIX DDF_INSTALL/bin/stop
Code Block title Windows DDF_INSTALL/bin/stop.bat
Warning title Shutdown Do not shutdown by closing the window (Windows, Unix) or using the
kill -9 <pid>
command (Unix). This prevents a clean shutdown and can cause significant problems when
is restarted. Always use theInsert excerpt ApplicationName ApplicationName nopanel trueApplicationName shutdown
command or theCtrl-D
keystroke (Windows) from the command line console.
Anchor | ||||
---|---|---|---|---|
|
Because
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Create the Karaf wrapper
Code Block title Within the DDF console ddf@local> features:install wrapper ddf@local> wrapper:install -s AUTO_START -n ddf -d ddf -D "DDF Service"
(Windows users skip to next step) (All *NIX) If
was installed to run as a non-root user (recommended) edit DDF_INSTALL/bin/ddf-serviceInsert excerpt ApplicationName ApplicationName nopanel trueApplicationName Change:
Code Block title DDF_INSTALL/bin/ddf-service #RUN_AS_USER=
to:
Code Block title DDF_INSTALL/bin/ddf-service RUN_AS_USER=<ddf-user>
Set the memory in the wrapper config to match with DDF default memory setting
a) Add the setting for PermGen space under the JVM Parameters section
b) Update Heap space to 2048
Code Block language bash title DDF_INSTALL/etc/ddf-wrapper.conf #Add the following: wrapper.java.additional.9=-XX:PermSize=128m wrapper.java.additional.10=-XX:MaxPermSize=512m wrapper.java.additional.11=-Dderby.system.home="..\data\derby" wrapper.java.additional.12=-Dderby.storage.fileSyncTransactionLog=true wrapper.java.additional.13=-Dcom.sun.management.jmxremote wrapper.java.additional.14=-Dfile.encoding=UTF8 wrapper.java.additional.15=-Dddf.home=%DDF_HOME% #Update the following: wrapper.java.maxmemory=2048
Set DDF_HOME property
Code Block title DDF_INSTALL/etc/ddf-wrapper.conf set.default.DDF_HOME="%KARAF_HOME%"
Install the wrapper startup/shutdown scripts
Windows
Run the following command in a console window. The command must be run with elevated permissionsCode Block DDF_INSTALL/bin/ddf-service.bat install
Startup and Shutdown settings can then be managed through the Services MMC Start -> Control Panel -> Administrative Tools -> Services
Redhat
Code Block root@localhost# ln -s DDF_INSTALL/bin/ddf-service /etc/init.d/ root@localhost# chkconfig ddf-service --add root@localhost# chkconfig ddf-service on
Ubuntu
Code Block root@localhost# ln -s DDF_INSTALL/bin/ddf-service /etc/init.d/ root@localhost# update-rc.d -f ddf-service defaults
Solaris
Code Block root@localhost# ln -s DDF_INSTALL/bin/ddf-service /etc/init.d/ root@localhost# ln -s /etc/init.d/ddf-service /etc/rc0.d/K20ddf-service root@localhost# ln -s /etc/init.d/ddf-service /etc/rc1.d/K20ddf-service root@localhost# ln -s /etc/init.d/ddf-service /etc/rc2.d/K20ddf-service root@localhost# ln -s /etc/init.d/ddf-service /etc/rc3.d/S20ddf-service
Note While not necessary, information on how to convert the System V init scripts to the Solaris System Management Facility can be found at http://www.oracle.com/technetwork/articles/servers-storage-admin/scripts-to-smf-1641705.html
Note title Solaris specific modification Due to a slight difference between the Linux and Solaris implementation of the "ps" command, the ddf-service script needs to be modified
...
Because
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|
...
Insert excerpt | ||||||
---|---|---|---|---|---|---|
|