XPost: alt.os.linux.mageia   
   From: BitTwister@mouse-potato.com   
      
   On Tue, 12 Mar 2013 17:25:46 GMT, unruh wrote:   
   > On 2013-03-12, Bit Twister wrote:   
      
   >> You better test and get use to a systemd only init process and   
   >> journald commands to check/read the logs.   
   >   
   > Does that mean that the old init.d processes will not work at all on   
   > this system?   
      
   I do not like the wording of the question.   
      
   > How does one transfer over old init.d processes to systemd?   
      
   I am going to substitute processes with scripts.   
      
   The majority of init scripts have been migrated as you can see from   
   what is left to be converted:   
      
   $ ls -1 /etc/rc.d/rc3.d/S*   
   /etc/rc.d/rc3.d/S09resolvconf   
   /etc/rc.d/rc3.d/S10network   
   /etc/rc.d/rc3.d/S13irqbalance   
   /etc/rc.d/rc3.d/S13msec   
   /etc/rc.d/rc3.d/S20vboxdrv   
   /etc/rc.d/rc3.d/S35vboxautostart-service   
   /etc/rc.d/rc3.d/S35vboxballoonctrl-service   
   /etc/rc.d/rc3.d/S50network-up   
   /etc/rc.d/rc3.d/S51mysqld   
   /etc/rc.d/rc3.d/S80postfix   
   /etc/rc.d/rc3.d/S95microcode_ctl   
      
   If you have rolled your own scripts, just create a unit file which   
   will call your script(s).   
      
   Plenty of unit files found in /usr/lib/systemd/system/   
      
   As an example, all the stuff I used to add to rc.local, I now have in   
   local.rc. I then copied /usr/lib/systemd/system/rc-local.service   
   to my local-rc.service file and changed it to the following:   
      
   $ cat local-rc.service   
   [Unit]   
   Description=/local/bin/local.rc   
   After=network.target   
      
   [Service]   
   Type=forking   
   ExecStart=/local/bin/local.rc start   
   TimeoutSec=0   
   RemainAfterExit=yes   
   SysVStartPriority=99   
      
   [Install]   
   WantedBy=multi-user.target   
      
      
   and copied it to /usr/lib/systemd/system/local-rc.service where   
   systemd will run it after network.target has completed.   
      
   --- SoupGate-Win32 v1.05   
    * Origin: you cannot sedate... all the things you hate (1:229/2)   
|