Create a *.service file (* is the service name, such as myscript.service)
Use root user and save this file to the /etc/systemd/system directory:
sudo cp myscript.service /etc/systemd/system/myscript.service
Then you can try to start the service with the following command:
sudo systemctl start myscript.service
Stop the service:
sudo systemctl stop myscript.service
Set automatic run at boot:
sudo systemctl enable myscript.service
The systemctl command can also be used to restart or disable it.
Q&A
-
71. How to use systemd to set boot startups under Linux?
-
72. How to take a screenshot on DEBIX?PrtSc: Take a screenshot of the entire screen and save it to the Pictures directory.
Shift + PrtSc: Take a screenshot of a certain area of the screen and save it to the Pictures directory.
Alt + PrtSc: Take a screenshot of the current window and save it to the Pictures directory.
Ctrl + PrtSc: Take a screenshot of the entire screen and save it to the clipboard.
Shift + Ctrl + PrtSc: Take a screenshot of a certain area of the screen and save it to the clipboard.
Ctrl + Alt + PrtSc: Take a screenshot of the current window and save it to the clipboard.
The screenshot will be automatically saved in the Pictures folder -
73. What’s the mounting method of fstab and mobile hard disk?DEBIX supports automatic mounting of USB storage devices, and it can also be mounted by modifying /etc/fstab;
-
74. Does it support automatic mounting of external USB storage devices?Yes.
-
75. How to modify the startup animation of DEBIX?If you want to modify the startup animation, please provide the bmp picture for us to add to the kernel image.
-
76. How to modify the hostname of DEBIX?Run hostnamectl to view the hostname of the current system
Use the following command to change the hostname:
hostnamectl set-hostname [YOUR NEW HOSTNAME] -
77. What is the username and password for Debix?debix, debix
-
78. What power supply do I need? Can I run it from my laptop via USB or my phone charger?5V power adapter. It depends on the power ability.
-
79. How to power on Debix?Provide a 5V3A power supply.
-
80. Can I add extra memory?No