Stopping third party application before NFS

This forum is dedicated to advanced help and support :

Ask here your questions about advanced usage of Mageia. For example you may post here all your questions about network and automated installs, complex server configurations, kernel tuning, creating your own Mageia mirrors, and all tasks likely to be touchy even for skilled users.

Stopping third party application before NFS

Postby mackowiakp » Mar 10th, '14, 08:20

I use twonkyserwer - third party application - on my M4 based server. It starts and stops via /etc/init.d, not via systemd.
Twonky uses resources located on NFS mounted filesystems. The problem is that during system shutdown such resources are locked by Twonky and can not be unmounted, so system hangs during shutdown. The solution is to shutdown Twonky first (/etc/init.d/twonkyserver stop) and after that NFS mounts can be clearly unmounted.
How can I change order of shutdown system services, to shutdown Twonky first and than MySQL (used by Twonky) and than dismount NFS resouces?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Stopping third party application before NFS

Postby doktor5000 » Mar 11th, '14, 00:26

Write a systemd unit for it.
Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany

Re: Stopping third party application before NFS

Postby mackowiakp » Mar 11th, '14, 00:53

Can You give me any recommendations, how to write systemd unit?
Linux is like wigwam. No Windows, no Gates but Apache inside

WARNING ! The administrator has the right to refuse to install WINDOWS, invoking the conscience clause
mackowiakp
 
Posts: 660
Joined: May 23rd, '13, 07:32
Location: Gdynia, Poland

Re: Stopping third party application before NFS

Postby doktor5000 » Mar 11th, '14, 01:00

Cauldron is not for the faint of heart!
Caution: Hot, bubbling magic inside. May explode or cook your kittens!
----
Disclaimer: Beware of allergic reactions in answer to unconstructive complaint-type posts
User avatar
doktor5000
 
Posts: 18018
Joined: Jun 4th, '11, 10:10
Location: Leipzig, Germany


Return to Advanced support

Who is online

Users browsing this forum: No registered users and 1 guest