Oracle systemd: differenze tra le versioni

Da Emigar.
Jump to navigation Jump to search
(Creata pagina con "<pre> [root@tnbmilgtw02 system]# pwd /usr/local/lib/systemd/system [root@tnbmilgtw02 system]# more oracle_listener.service [Unit] Description="Oracle Listener" After=network....")
 
Nessun oggetto della modifica
Riga 1: Riga 1:
<pre>
<pre>
[root@tnbmilgtw02 system]# pwd
[root@host02 system]# pwd
/usr/local/lib/systemd/system
/usr/local/lib/systemd/system


[root@tnbmilgtw02 system]# more oracle_listener.service
[root@host02 system]# more oracle_listener.service
[Unit]
[Unit]
Description="Oracle Listener"
Description="Oracle Listener"
Riga 12: Riga 12:
Group=oinstall
Group=oinstall
Type=forking
Type=forking
WorkingDirectory=/tinaba/oracle/product/11.2.0/dbhome_1
WorkingDirectory=/app/oracle/product/11.2.0/dbhome_1
Environment=ORACLE_BASE=/tinaba/oracle ORACLE_HOME=/tinaba/oracle/product/11.2.0/dbhome_1
Environment=ORACLE_BASE=/app/oracle ORACLE_HOME=/app/oracle/product/11.2.0/dbhome_1
Restart=on-failure
Restart=on-failure
ExecStart=/tinaba/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start LISTENER
ExecStart=/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start LISTENER
ExecStop=/tinaba/oracle/product/11.2.0/dbhome_1/bin/lsnrctl stop LISTENER
ExecStop=/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl stop LISTENER


[Install]
[Install]

Versione delle 23:47, 22 mar 2017

[root@host02 system]# pwd
/usr/local/lib/systemd/system

[root@host02 system]# more oracle_listener.service
[Unit]
Description="Oracle Listener"
After=network.target

[Service]
User=oracle
Group=oinstall
Type=forking
WorkingDirectory=/app/oracle/product/11.2.0/dbhome_1
Environment=ORACLE_BASE=/app/oracle ORACLE_HOME=/app/oracle/product/11.2.0/dbhome_1
Restart=on-failure
ExecStart=/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl start LISTENER
ExecStop=/app/oracle/product/11.2.0/dbhome_1/bin/lsnrctl stop LISTENER

[Install]
WantedBy=multi-user.target