susi_linux icon indicating copy to clipboard operation
susi_linux copied to clipboard

To add a script to configure other scripts on work on bootup

Open sansyrox opened this issue 6 years ago • 4 comments

Actual Behaviour

Many present scripts require to executed on boot-up.

Expected Behaviour

To create a script that will allow the other script to execute on startup

Would you like to work on the issue?

Yes

sansyrox avatar Jun 20 '18 22:06 sansyrox

When is this script executed?

hongquan avatar Jul 04 '18 17:07 hongquan

@hongquan , the user will have to implemented manually, or I can add it in install.sh

sansyrox avatar Jul 06 '18 23:07 sansyrox

All the scripts that need to be started on bootup have to be implemented as systemd service. The install.sh should take care of installing those services.

hongquan avatar Jul 07 '18 02:07 hongquan

Later on, let's create a folder named Deploy to contains files used for deployment. The structure can be:

+ Deploy/
    + Systemd/
          +-- ss-ap-server.service
          +-- ss-update-daemon.service
    + Others...

The systemd service files are prefixed ss, means susi, to mark that they are from our project. When installing SUSI.AI, the ss-*.service files are then copied to /lib/systemd/system/.

Note, don't copy to /etc/systemd, because the former location allow us to disable/enable services when needed.

hongquan avatar Jul 07 '18 03:07 hongquan