Download & Install Derby
download Derby For Java 8 and Higher, such as derby-10.14.1.0 untar derby distribution under /opt/derby [https://db.apache.org/derby/derby_downloads.html]
Integrate with supervisord
cat >> /etc/supervisord.d/derby.ini << EOF [program:derby] command=/opt/derby/bin/startNetworkServer -h 0.0.0.0 ; the program (relative uses PATH, can take args) process_name=%(program_name)s ; process_name expr (default %(program_name)s) numprocs=1 ; number of processes copies to start (def 1) directory=/opt/derby ; directory to cwd to before exec (def no cwd) priority=1 ; the relative start priority (default 999) startsecs=10 ; number of secs prog must stay running (def. 1) user=spark ; setuid to this UNIX account to run the program redirect_stderr=true ; redirect proc stderr to stdout (default false) stdout_logfile=/var/log/%(program_name)s-stdout.log ; stdout log path, NONE for none; default AUTO EOF
supervisorctl reread supervisorctl update
No comments:
Post a Comment