susi_linux
susi_linux copied to clipboard
To add a script to configure other scripts on work on bootup
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
When is this script executed?
@hongquan , the user will have to implemented manually, or I can add it in install.sh
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.
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.