1

This question already has an answer here:

I have this service enabled by systemctl:

[Unit]     
Description=The Oracle Database Service     
After=syslog.target network.target     
Wants=network.target    

[Service]    
LimitMEMLOCK=infinity    
LimitNOFILE=65535     
Type=simple     
KillMode=none     
SendSIGKILL=no     
TimeoutSec=5min 
RemainAfterExit=yes     
TimeoutStopSec=5min     
User=oracle     
Group=oinstall     
ExecStart=/home/oracle/acciones/doc/startup.sh    
ExecStop=/home/oracle/acciones/doc/shutdown.sh

[Install]     
WantedBy=multi-user.target graphical.target

The service is working, but after reboot or shutdown the log message indicates that shutdown script was not finished correctly. I am using RHEL7.

marked as duplicate by Bratchley, Rahul, Jeff Schaller, don_crissti, slm Aug 30 '16 at 12:48

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

migrated from stackoverflow.com Aug 30 '16 at 11:53

This question came from our site for professional and enthusiast programmers.

  • I guess you would have to add Before=shutdown.target in [Unit] section. Please have a look at man systemd.special – Rahul Aug 30 '16 at 11:58