Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  1. Download openspecimen.service.

  2. Edit file downloaded in step #1 in any editor of your choice. Replace first occurrence of $CATALINA_HOME with the value of and $TOMCAT_HOME with the absolute path of Tomcat directory. (Like /usr/local/openspecimen/tomcat-as)

  3. Copy edited file to /etc/systemd/system directory

  4. Stop Tomcat process, if running

  5. Execute below command to notify systemd that OpenSpecimen service has been added
    $ sudo systemctl daemon-reload

  6. Use below commands to start, status .stop, or restart OpenSpecimen service
    $ sudo systemctl start openspecimen.service
    sudo systemctl status openspecimen.service
    $ sudo systemctl stop openspecimen.service    
    $ sudo systemctl restart openspecimen.service

  7. Enable starting of OpenSpecimen on boot by executing below command:
    $ sudo systemctl enable openspecimen.service

...