...
- Download openspecimen.service.
- Edit file downloaded in step #1 in any editor of your choice. Replace first occurrence of
$CATALINA_HOME
with the value of$TOMCAT_HOME
- Copy edited file to
/etc/systemd/system
directory - Stop Tomcat process, if running
- Execute below command to notify systemd that OpenSpecimen service has been added
$sudo systemctl daemon-reload
- Use below commands to start, stop, or restart OpenSpecimen service
$sudo systemctl start openspecimen.service
$sudo systemctl stop openspecimen.service
$sudo systemctl restart openspecimen.service
- Enable starting of OpenSpecimen on boot by executing below command:
$sudo systemctl enable openspecimen.service
Note:
- Before running point no 7 make sure openspecimen service is not in running state.
- In the openspecimen.service file. Value of User directive is the name of the Linux user from who will start the service. (By default value is set to openspecimen).
Expand | ||
---|---|---|
| ||
Note: Use sudo or root privileges while creating a Tomcat service.
UbuntuTo enable starting OpenSpecimen service on boot, execute below command:
If you've customized service name, use the customized name instead of Redhat 6.x/CentOS 6.xUse
Use below command line to start OpenSpecimen service at a specific run level:
Note: To setup the 'OpenSpecimen service' we need the below prerequisites : |
...