Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Fisher, Charles J. (Top Echelon)
-Original Message- How about: http://www.freedesktop.org/software/systemd/man/systemd.kill.html Would setting KillMode=process for the listener service have the required effect: on service stop, only kill the main process, leaving the child processes and cgroup running? Yes,

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Andrei Borzenkov
В Fri, 31 Oct 2014 11:20:02 -0400 Fisher, Charles J. (Top Echelon) charles.fis...@alcoa.com пишет: -Original Message- How about: http://www.freedesktop.org/software/systemd/man/systemd.kill.html Would setting KillMode=process for the listener service have the required

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Reindl Harald
Am 31.10.2014 um 17:47 schrieb Fisher, Charles J. (Top Echelon): From: Andrei Borzenkov [mailto:arvidj...@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

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Fisher, Charles J. (Top Echelon)
-Original Message- From: systemd-devel [mailto:systemd-devel-boun...@lists.freedesktop.org] On Behalf Of Reindl Harald 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 No,

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Reindl Harald
Am 31.10.2014 um 18:06 schrieb Fisher, Charles J. (Top Echelon): From: systemd-devel [mailto:systemd-devel-boun...@lists.freedesktop.org] On Behalf Of Reindl Harald 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

Re: [systemd-devel] starting Oracle with systemd

2014-10-31 Thread Reindl Harald
Am 31.10.2014 um 18:10 schrieb Reindl Harald: Am 31.10.2014 um 18:06 schrieb Fisher, Charles J. (Top Echelon): From: systemd-devel [mailto:systemd-devel-boun...@lists.freedesktop.org] On Behalf Of Reindl Harald For some reason, the iptables didn't happen. Maybe it needs to be fully

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Lennart Poettering
On Tue, 28.10.14 15:08, Fisher, Charles J. (Top Echelon) (charles.fis...@alcoa.com) wrote: Is this the best way to start Oracle? [root@localhost system]# cat oracle-foo.service [Unit] Description=oracle db - foo After=syslog.target The After=syslog.target line is unnecessary these days.

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Fisher, Charles J. (Top Echelon)
On Tue, 28.10.14 15:08, Fisher, Charles J. (Top Echelon) (charles.fis...@alcoa.com) wrote: Is this the best way to start Oracle? [Service] Environment=ORACLE_SID=foo ORACLE_HOME=/home/oracle/Ora12c/db ExecStart=/bin/ksh -c 'print connect / as sysdba \n startup \n quit |

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Andrei Borzenkov
В Thu, 30 Oct 2014 13:29:10 -0400 Fisher, Charles J. (Top Echelon) charles.fis...@alcoa.com пишет: On Tue, 28.10.14 15:08, Fisher, Charles J. (Top Echelon) (charles.fis...@alcoa.com) wrote: Is this the best way to start Oracle? [Service] Environment=ORACLE_SID=foo

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Fisher, Charles J. (Top Echelon)
-Original Message- From: systemd-devel [mailto:systemd-devel-boun...@lists.freedesktop.org] On Behalf Of Andrei Borzenkov Even in this case behavior is wrong. Currently stopping listener does not affect existing database connections. Killing all client processes on listener stop will

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Lennart Poettering
On Thu, 30.10.14 13:29, Fisher, Charles J. (Top Echelon) (charles.fis...@alcoa.com) wrote: This looks quite suspicious as you spawn a shell and keep it running. It's fine to run shells and then finally exec the real binary, replacing the shell process, but keeping the shell around would tell

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Fisher, Charles J. (Top Echelon)
-Original Message- From: Lennart Poettering [mailto:lenn...@poettering.net] If you run those instances in separate cgroups? what's that supposed to mean? We do not expose cgroups as concept in systemd. Are you accessing cgroupfs directly? I have no idea how Oracle works, and the

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Andrei Borzenkov
В Thu, 30 Oct 2014 20:06:55 +0100 Lennart Poettering lenn...@poettering.net пишет: I have no idea how Oracle works, and the above it too cryptic to fully understand what point you are trying to make. Can you eloborate on this for somebody who doesn't know a thing about Oracle? Oracle

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Andrew Barnes
On 31 Oct, 2014 6:35 AM, Andrei Borzenkov arvidj...@gmail.com wrote: В Thu, 30 Oct 2014 20:06:55 +0100 Lennart Poettering lenn...@poettering.net пишет: I have no idea how Oracle works, and the above it too cryptic to fully understand what point you are trying to make. Can you eloborate

Re: [systemd-devel] starting Oracle with systemd

2014-10-30 Thread Andrei Borzenkov
В Fri, 31 Oct 2014 08:11:54 +1100 Andrew Barnes barnes...@gmail.com пишет: On 31 Oct, 2014 6:35 AM, Andrei Borzenkov arvidj...@gmail.com wrote: В Thu, 30 Oct 2014 20:06:55 +0100 Lennart Poettering lenn...@poettering.net пишет: I have no idea how Oracle works, and the above it too

Re: [systemd-devel] starting Oracle with systemd

2014-10-28 Thread Jóhann B. Guðmundsson
On 10/28/2014 07:08 PM, Fisher, Charles J. (Top Echelon) wrote: Is this the best way to start Oracle? No and unfortunately for you Oracle is not open source and has a bad track record taking code submissions which is probably why nobody has written a proper systemd unit for it and pushed

Re: [systemd-devel] starting Oracle with systemd

2014-10-28 Thread Fisher, Charles J. (Top Echelon)
: EXT: Re: [systemd-devel] starting Oracle with systemd On 10/28/2014 07:08 PM, Fisher, Charles J. (Top Echelon) wrote: Is this the best way to start Oracle? No and unfortunately for you Oracle is not open source and has a bad track record taking code submissions which is probably why nobody has

Re: [systemd-devel] starting Oracle with systemd

2014-10-28 Thread Andrei Borzenkov
В Tue, 28 Oct 2014 15:08:45 -0400 Fisher, Charles J. (Top Echelon) charles.fis...@alcoa.com пишет: Is this the best way to start Oracle? [root@localhost system]# cat oracle-foo.service [Unit] Description=oracle db - foo After=syslog.target [Service] Environment=ORACLE_SID=foo