HPOS 4.0 technical note 2

HP Output Server 3
MySQL and JBoss integration framework
Procedure involved in integrating external servers in HP Output Server
xi. The -server-init-arguments attribute to specify the options that need to be passed to the
server-init command.
<DAZEL-AVPAIR NAME="server-init-arguments">
<DAZEL-VALUE STRING-VALUE="!{dazel-bin}!/mysql_config.pl init1 init2
init3 init4....">
</DAZEL-AVPAIR>
xii. The -server-clean-command attribute to specify name of executable that should be run after the
server is deleted with config_server –d option.
<DAZEL-AVPAIR NAME="server-clean-command">
<DAZEL-VALUE STRING-VALUE="!{dazel-bin}!/perl">
</DAZEL-AVPAIR>
xiii. The -server-clean-arguments attribute to specify the options that need to be passed to the
-server-clean command.
<DAZEL-AVPAIR NAME="server-clean-arguments">
<DAZEL-VALUE STRING-VALUE="!{dazel-bin}!/mysql_config.pl clean1 clean2
clean3 clean4....">
</DAZEL-AVPAIR>
xiv. The -server-multiple-instance-allowed attribute to specify the options for single or multiple
servers. The valid values are TRUE or FALSE.
<DAZEL-AVPAIR NAME="server-multiple-instance-allowed">
<DAZEL-VALUE STRING-VALUE="false">
</DAZEL-AVPAIR>
xv. The -server-group attribute specifies the type of servers.
<DAZEL-AVPAIR NAME="server-group">
<DAZEL-VALUE STRING-VALUE="primary">
</DAZEL-AVPAIR>
xvi. The -server-privilege-check-type attribute is used to customize the privilege checking for
MySQL server. The valid values are none and pm.
<DAZEL-AVPAIR NAME="server-privilege-check-type">
<DAZEL-VALUE STRING-VALUE="none">
</DAZEL-AVPAIR>
NOTE: For details on Sample file for the MySQL server, refer to “Sample ServerTemplates.sgml
for the MySQL server” at the end of this technote.
3. You need to create the start, stop, status and config scripts to do appropriate handling of the request and return
0/1 depending on the result of the operation to indicate success or failure of the operation.
mysql_start.pl
my $working_dir= shift @ARGV;
my $binpath= "$working_dir/bin";
my $my_command;
chdir($working_dir);