Skip to content

Commit

Permalink
Adds Oracle service (#53)
Browse files Browse the repository at this point in the history
* Adds racle service

* Bump version to 1.2.7

---------

Co-authored-by: GILLES DEVILLARD <[email protected]>
  • Loading branch information
gillesde and GILLES DEVILLARD authored Aug 23, 2023
1 parent f8626ef commit 17ce297
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 1 deletion.
2 changes: 1 addition & 1 deletion galaxy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ name: spm_middleware

# The version of the collection. Must be compatible with semantic versioning
# Please note. version also exists in /github/workflows/release.yml and will need to be update also
version: 1.2.6
version: 1.2.7

# The path to the Markdown (.md) readme file. This path is relative to the root of the collection
readme: README.md
Expand Down
12 changes: 12 additions & 0 deletions roles/oracle/tasks/configure.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,16 @@
---
- name: Starting service
block:
- name: Copy oracle.service
template:
src: oracle.service.j2
dest: /etc/systemd/system/oracle.service
- name: Start service
systemd:
name: oracle.service
enabled: yes
state: started

- name: Check listener status
become: yes
become_user: oracle
Expand Down
19 changes: 19 additions & 0 deletions roles/oracle/templates/oracle.service.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[Unit]
Description=Service to start Oracle {{ oracle_family }} Database
After=syslog.target network.target

[Service]
#LimitNOFILE=1024:65536
#LimitNPROC=2047:16384
#LimitSTACK=10485760:33554432
#LimitMEMLOCK=infinity
#Type=forking
User=oracle
Group=oinstall
RemainAfterExit=True
Restart=no
ExecStart=/opt/oracle/product/{{ oracle_family }}/dbhome_1/bin/dbstart /opt/oracle/product/{{ oracle_family }}/dbhome_1
ExecStop=/opt/oracle/product/{{ oracle_family }}/dbhome_1/bin/dbshut /opt/oracle/product/{{ oracle_family }}/dbhome_1

[Install]
WantedBy=multi-user.target

0 comments on commit 17ce297

Please sign in to comment.