...
- At this stage, it is strongly recommended you check where the service scripts are located
- Run the following command
| Code Block |
|---|
|
systemctl list-unit-filesls /etc/init.d/ | grep -i dual |
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 |
|---|
|
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
...
...
- 'dualshield' and 'dualsql' do not exist under /etc/init.d
...
Image Removed
...
...
...
- following systemd service script instead
| Code Block |
|---|
|
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 |
|---|
|
sudo cp dualshield /etc/init.d
sudo cp dualsql /etc/init.d |
- You will need to also register the SysV services
| Code Block |
|---|
|
sudo update-rc.d dualsql defaults 88
sudo update-rc.d dualshield defaults 89 |
...