[systemd-devel] starting Oracle with systemd
Reindl Harald
h.reindl at thelounge.net
Fri Oct 31 10:02:38 PDT 2014
Am 31.10.2014 um 17:47 schrieb Fisher, Charles J. (Top Echelon):
> From: Andrei Borzenkov [mailto:arvidjaar at gmail.com]
>
>> I know. So define service that starts listener, use "lsnrctl start" as
>> ExecStart, "lsnrctl stop" as ExecStop and set KillMode=process (or
>> "none"). What exactly does not work in this case?
>
> Reading this, "none" is the right choice, so the child connections don't die.
>
> For some reason, the iptables didn't happen. Maybe it needs to be fully qualified.
yes it needs to be as any other path
the documentation is very clear here
> [root at localhost system]# cat oracle-listener.service
> [Unit]
> Description=oracle listener
> After=syslog.target
>
> [Service]
> Environment='ORACLE_HOME=/home/oracle/Ora12c/db'
> ExecStart=/home/oracle/Ora12c/db/bin/lsnrctl start
> ExecStop=/home/oracle/Ora12c/db/bin/lsnrctl stop
> KillMode=none
> ExecStartPost=iptables -I INPUT -p tcp --dport 1521 --syn -j ACCEPT
> Type=forking
> User=oracle
> Group=dba
>
> [Install]
> WantedBy=multi-user.target
>
> #This file should be placed in /etc/systemd/system
> #enable for start at boot by: systemctl enable oracle-listener.service
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 181 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freedesktop.org/archives/systemd-devel/attachments/20141031/cdb14550/attachment.sig>
More information about the systemd-devel
mailing list