Line 11:
Line 11:
=== systemctl ===
=== systemctl ===
−
This allows maintenance of the systemd environment allowing you to stop, start and extract a status from the running services that SystemD is managing.
+
This command line tool allows maintenance of the systemd environment allowing you to stop, start and extract a status from the running services that SystemD is managing.
Just typing systemctl on the command line. Gives us over a hundred running services..
Just typing systemctl on the command line. Gives us over a hundred running services..
Line 25:
Line 25:
[[File:Systemctl-status-zynthian.png|right|300px]]
[[File:Systemctl-status-zynthian.png|right|300px]]
Shows us the status of various zynthian services.
Shows us the status of various zynthian services.
+
<br clear=all>
Notice they all very kindly tell you where these unit files are located. . .
Notice they all very kindly tell you where these unit files are located. . .
Line 30:
Line 31:
* Loaded: loaded (/etc/systemd/system/zynthian.service; enabled; vendor preset: enabled)
* Loaded: loaded (/etc/systemd/system/zynthian.service; enabled; vendor preset: enabled)
* Loaded: loaded (/etc/systemd/system/zynthian-config-on-boot.service; enabled; vendor preset: enabled)
* Loaded: loaded (/etc/systemd/system/zynthian-config-on-boot.service; enabled; vendor preset: enabled)
−
Active: inactive (dead) since Wed 2021-10-13 10:52:30 BST; 2 days ago
+
+
+
The first two services zynthian & zynthian-webconf are both running whilst zynthian-config-on-boot has done it's thing about 2 days ago . . .
+
Active: inactive (dead) since Wed 2021-10-13 10:52:30 BST; 2 days ago.
+
+
and here are the files:
+
+
[[File:Visual Studio unit scripts.png|left|600px]]
+
<br clear=all>
+
Things to notice:
+
+
=== Config-On-Boot Service ===
+
* It occurs before the jack2 service. So zynthian is really just a big jack2 engine :-)
+
* It's a one time fire
+
* /zynthian/zynthian-sys/sbin/config-on-boot.sh then does the actual setup.
+
+
=== Zynthian Webconf ===
+
* /zynthian/zynthian-webconf/zynthian_webconf.sh runs it.
+
* It's completely independent of other zynthian services.
+
* It will always restarts after five seconds of being killed.
+
+
=== Zynthian===
+
* Zynthian won't run without jack
+
* /usr/bin/startx ./zynthian.sh runs it.
+
* There is a similar restart directive as with webconf.
+
+
+
So remember normal kill -9 and such tricks will simply result in zynthian, or zynthian-webconf just restarting.
+
+
If you do want to stop them for ritualistic disembowelment on a desk, then use systemctl with stop and start.
+
+
systemctl stop zynthian
+
+
and to restart
+
+
systemctl start zynthian