Introduce service unit for openmrs service

Description

Create a systemd unit (.service) file for openmrs.

  1. name: “openmrs.service”

  2. target location: /usr/lib/systemd/system/

 

service file options

  1. user = bahmni

  2. pid file

  3. ExecStart - call command “/etc/init.d/openmrs start”

  4. ExecStop - call command “/etc/init.d/openmrs stop”

  5. ExecReload - call command “/etc/init.d/openmrs restart”

  6. multi user target forking type

 

Update startup script

  • modify the sysvinit script (/etc/init.d/openmrs) to remove the “su -u …” option. (the user “bahmni” is mentioned in service file)

Assignee

Angshuman Sarkar

Reporter

Angshuman Sarkar

Labels

None

Units

None

PercentDone

None

DueTime

None

Clients

None

External issue ID

None

UAT Assignee

None

Reviewer

None

Sprint

Configure