Data Sync Server Documentation Index
Command-Line Tool Reference Home

create-rc-script

Description
Examples
Arguments

Description

Create an RC script that may be used to start, stop, and restart the Data Sync Server on UNIX-based systems.

Examples

Generate an /etc/init.d/PingDataSync.sh shell script with the default Java executable and JVM arguments that will run as the user that invokes the script. Run this command as a superuser or use sudo:
create-rc-script --outputFile /etc/init.d/PingDataSync.sh


Generate an /etc/init.d/PingDataSync.sh shell script with the default Java executable and JVM arguments that will run as the 'ds' user. Run this command as a superuser or use sudo:
create-rc-script --outputFile /etc/init.d/PingDataSync.sh --userName ds


Generate an /etc/init.d/PingDataSync.sh shell script with the default Java executable and JVM arguments that will run as the user that invokes the script. Review the output then copy to /etc/init.d/PingDataSync.sh as a superuser or using sudo:
create-rc-script --outputFile /etc/init.d/PingDataSync.sh


Generate an /etc/init.d/PingDataSync.sh shell script with the default Java executable and JVM arguments that will run as the 'ds' user. Review the output then copy to /etc/init.d/PingDataSync.sh as a superuser or using sudo:
create-rc-script --outputFile /etc/init.d/PingDataSync.sh --userName ds

Arguments

-V
--version

Description Display Data Sync Server version information

-H
--help

Description Display general usage information

--help-debug

Description Display help for using debug options
Advanced Yes

-f {path}
--outputFile {path}

Description The path where the output file will be created
Required Yes
Multi-Valued No

-u {userName}
--userName {userName}

Description The name of the user account under which the server should run, if not specified the script will read the user account from config/server.user
Required No
Multi-Valued No

-j {path}
--javaHome {path}

Description The path to the Java installation that should be used to run the server
Required No
Multi-Valued No

-J {args}
--javaArgs {args}

Description A set of arguments that should be passed to the JVM when running the server
Required No
Multi-Valued No