introduce service unit for bahmni-reports

Description

Create a systemd unit (.service) file for bahmni-reports.

  1. name: “bahmni-reports.service”

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

 

service file options

  1. user = bahmni

  2. pid file

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

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

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

  6. multi user target forking type

 

Update startup script

  • modify the sysvinit script (/etc/init.d/bahmni-reports) 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