systemctl start egtdemo.serviceTo stop egtdemo.service service:
systemctl stop egtdemo.serviceSimilarly, To restart egtdemo.service service:
systemctl restart egtdemo.service
systemctl enable egtdemo.serviceTo disable started egtdemo.service on boot:
systemctl disable egtdemo.serviceTo check if a service is enabled or not:
systemctl is-enabled egtdemo.serviceTo check the status of a specific service including, whether it is running or not:
systemctl status egtdemo.serviceOne can see status logs like below,
root@sam9x60-curiosity-sd:~# systemctl status egtdemo.service * egtdemo.service - EGT Application Launcher Service Loaded: loaded (8;;file://sam9x60-curiosity-sd/lib/systemd/system/egtdemo.service/lib/systemd/system/egtdemo.service8;;; enabled; vendor preset: enabled)8;; Active: active (running) since Fri 2022-04-29 05:41:01 UTC; 57min ago Main PID: 205 (egt-launcher) Tasks: 2 (limit: 257) Memory: 26.6M CGroup: /system.slice/egtdemo.service `- 205 egt-launcher /opt/applications/resources /usr/share/egt
systemctl list-unitsTo list every unit file that systemd has loaded though that is listed as "not active":
systemctl list-units --all
journalctlTo see journal entries from the current boot, add the -b flag:
journalctl -bTo see only kernel messages, such as those that are typically represented by dmesg, you can use the -k flag:
journalctl -kAlso we can limit it to current boot by appending the -b flag:
journalctl -k -b
[Match] Name=wlan* [Network] DHCP=yes #Address=192.168.8.2 #Netmask=255.255.255.0 #Network=192.168.8.0 #Gateway=192.168.8.1Here, one can see by-default it is configured to DHCP and dynamically assigns IP.
[Match] Name=eth* [Network] #DHCP=yes Address=192.168.7.2 Netmask=255.255.255.0 Network=192.168.7.0 Gateway=192.168.7.1
systemctl reload systemd-networkdor
systemctl restart systemd-networkd
[Match] Name=wlan* [Network] #DHCP=yes Address=192.168.8.2 Netmask=255.255.255.0 Network=192.168.8.0 Gateway=192.168.8.1
systemctl reload systemd-networkdor
systemctl restart systemd-networkdAfter this one can observe static IP assigned to corresponding interface accordingly as furnished in below logs,
root@sam9x60-curiosity-sd:~# ifconfig eth0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.7.2 netmask 255.255.255.0 broadcast 192.168.7.255 inet6 fe80::691:62ff:fef2:8912 prefixlen 64 scopeid 0x20<link> ether 04:91:62:f2:89:12 txqueuelen 1000 (Ethernet) wlan0: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500 inet 192.168.8.2 netmask 255.255.255.0 broadcast 192.168.8.255 inet6 fe80::628a:10ff:fed8:9418 prefixlen 64 scopeid 0x20<link> ether 60:8a:10:d8:94:18 txqueuelen 1000 (Ethernet)Note: The default static IP configuration given here is just a sample, one can modify it according to their recommended need.
WebFaqBaseForm | |
---|---|
Boards | Sama7d65Curiosity, Sama5d29Curiosity, Sam9x75Curiosity, Sam9x60Curiosity, Sama7g5-ek, Sama5d2-icp, Sam9x60EK, Sama5d27WLSom1EK, Sama5d27Som1EK |
Components | linux-6.1-mchp, linux-6.6-mchp, BuildRoot, YoctoProject |
Summary | Basic systemd user guide |
Copyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Linux® is the registered trademark of Linus Torvalds in the U.S. and other countries.
Microchip and others, are registered trademarks or trademarks of Microchip Technology Inc. and its subsidiaries.
Arm® and others are registered trademarks or trademarks of Arm Limited (or its affiliates). Other terms and product names may be trademarks of others.
Ideas, requests, contributions ? Connect to LinksToCommunities page.