centos 7- boot doesn't wait for startup script to complete

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



 Hi All,I have a general question.  I have an old rc type startup script that I am still using on CentOS 7.  I got it to run by creating the systemd service file... a simple one as shown below, for Myservices.
# used to set up the Myservices onstartup[Unit]Description=Start and stop Myservices[Service]Type=oneshotExecStart=/etc/init.d/Myservices startExecStop=/etc/init.d/Myservices stopRemainAfterExit=yes[Install]WantedBy=multi-user.targetThis works. When the server starts Myservices is initiated.  However the boot keeps going. When I log in Myservices is still running.  it takes about 5 minutes to complete.  This is normal.  What is different is the boot up used to wait for the service to finish and then continue.   Can I use any options in my service file shown above, to make it wait before finishing the boot up?
ThanksKM
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
https://lists.centos.org/mailman/listinfo/centos




[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux