Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

  • At this stage, it is strongly recommended you check where the service scripts are located
  • Run the following command
Code Block
languagebash
systemctl list-unit-filesls /etc/init.d/ | grep -i dual
  • If you see results of...

Image Removed

..then it is most certainly systemd

...

 
  • If 'dualshield' and 'dualsql' appear in the output, then copy the SysV services scripts as follows
Code Block
languagebash
cp /usr/lib/systemd/systemetc/init.d/dualshield.service .
cp /usr/lib/systemd/systemetc/init.d/dualsql.service .
  • If however you had blank results then please try

...

languagebash

...

  • 'dualshield' and 'dualsql' do not exist under /etc/init.d

...

  • If you see results of...

Image Removed

...

  • then

...

  • copy the

...

  • following systemd service script instead
Code Block
languagebash
cp /etc/init.d/dualshieldusr/lib/systemd/system/dualshield.service .
cp /usr/lib/etcsystemd/init.dsystem/dualsql.service .
  • Copy all files to the new machine

...

  • If SysV (see above) Copy the following service script
Code Block
languagebash
sudo cp dualshield /etc/init.d
sudo cp dualsql /etc/init.d
  • You will need to also register the SysV services
Code Block
languagebash
sudo update-rc.d dualsql defaults 88
sudo update-rc.d dualshield defaults 89

...