From: p_s_d_a_s_i_l_v_a_ns@netcabo.pt   
      
   Ă€s 19:01 de 28-01-2017, William Unruh escreveu:   
   > On 2017-01-28, Paulo da Silva wrote:   
   >> Hi all!   
   >>   
   >> I need to launch a bash script just after mounts and another (or the   
   >> same with "stop") before umounts during boot/shutdown process.   
   >>   
   >> Does anybody know how to do this on OS 42.2?   
   >   
   > What is OS 42.2?   
   My short name for Opensuse 42.2 ;)   
      
   >>   
   >> A simple template would be nice. I don't want want to go thru the   
   >> process of understanding/learning systemd, at least for now.   
   >   
   > But it is systemd which allows you to run a dependency. What does this   
   > script do? What does "before unmounts" mean? Ie, does the script need to   
   > finish before unmount occurs? Or just be started before? Similary for   
   > the mounts.   
   Yes, but this is a very simple example.   
   During boot, after local mounts, a script must be launched (I don't care   
   if it waits or not for it to terminate).   
   During shutdown another scrip, or the same if I can see what is   
   happening (a stop parameter for ex.), must be launched (may be in this   
   case that the system should wait for it to finish although not   
   absolutely necessary) before umounts.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|