home bbs files messages ]

Forums before death by AOL, social media and spammers... "We can't have nice things"

   alt.os.linux.suse      Suse is actually not that bad      138,051 messages   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]

   Message 136,105 of 138,051   
   Malcolm to Paulo da Silva   
   Re: init script   
   27 Jan 17 22:31:41   
   
   From: malcolmlewis@cableone.net.invalid   
      
   On Sat, 28 Jan 2017 04:03:47 +0000   
   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?   
   >   
   > A simple template would be nice. I don't want want to go thru the   
   > process of understanding/learning systemd, at least for now.   
   >   
   > Thanks.   
   Hi   
   On an old system look for a /etc/init.d/skeleton file and adapt that,   
   else far easier with systemd and a service dumped   
   in /etc/systemd/system/ directory.   
      
   You could also try the existing *.local files already present   
   in /etc/init.d.   
      
      
   --   
   Cheers Malcolm °¿° SUSE Knowledge Partner (Linux Counter #276890)   
   openSUSE Leap 42.1|GNOME 3.16.2|4.1.36-44-default   
   up 5 days 14:18, 4 users, load average: 0.58, 0.59, 0.42   
   CPU AMD Athlon(tm) II X4 635 @ 2.90GHz | GPU Nvidia GeForce 8800 GT   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   

[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]


(c) 1994,  bbs@darkrealms.ca