Re: [systemd-devel] sd_bus_process() + sd_bus_wait() is it not suitable for application?

2022-01-23 Thread www
) Thanks, Byron At 2022-01-22 22:25:35, "Dan Nicholson" wrote: Aren't your leaking reply there? You don't seem to be unreffing it and it's not being returned to someone else to do it either. On Sat, Jan 22, 2022, 3:12 AM www wrote: +Add the implementation cod

Re: [systemd-devel] sd_bus_process() + sd_bus_wait() is it not suitable for application?

2022-01-22 Thread www
ply, NULL); } Thanks, Byron At 2022-01-22 14:16:13, "www" wrote: Dear all, When using sd_bus_process() + sd_bus_wait() to implement the application(Service), call the methods function on the service can obtain the correct information. Run a certain number of times will lead to

[systemd-devel] sd_bus_process() + sd_bus_wait() is it not suitable for application?

2022-01-21 Thread www
Dear all, When using sd_bus_process() + sd_bus_wait() to implement the application(Service), call the methods function on the service can obtain the correct information. Run a certain number of times will lead to insufficient memory and memleak does occur. It should not be a problem with

[systemd-devel] sd_bus_process() + sd_bus_wait() is it not suitable for application?

2022-01-21 Thread www
Dear all, When using sd_bus_process() + sd_bus_wait() to implement the application(Service), call the methods function on the service can obtain the correct information. Run a certain number of times will lead to insufficient memory and memleak does occur. It should not be a problem with

[systemd-devel] [systemd]: How to set systemd not to generate loop0.device and mtdblockx.device?

2021-10-08 Thread www
Dear all, systemd version: V242 In our system, the whole machine starts too slowly. We want to do some optimization. I found that two services( loop0.device and mtdblock5.device) started slowly. I want to remove them (I personally think our system are not need them). I want to ask you how to

[systemd-devel] [systemd]: How to set systemd not to generate loop0.device and mtdblockx.device?

2021-09-24 Thread www
Dear all, systemd version: V242 In our system, the whole machine starts too slowly. We want to do some optimization. I found that two services( loop0.device and mtdblock5.device) started slowly. I want to remove them (I personally think our system are not need them). I want to ask you how to

[systemd-devel] [systemd]: sd-sync lead to kernel panic

2021-06-30 Thread www
Dear all, systemd version: v234 kernel version: 5.1.5 My embedded system uses systemd. Occasionally kernel panic appears in this system. It is found that it is related to sd-sync in systemd. How to analyze this and why? What causes this problem? Or can you see that sd-sync has a problem proce

[systemd-devel] [systemd-level]: how to config and enable systemd help to create coredump file when the process crashes ?

2020-05-20 Thread www
Dear all, how to config and enable systemd help to create coredump file when the process crashes ? thanks, Byron___ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] [systemd-level]: how to change default timezone in systemd code?

2020-04-29 Thread www
hi Silvio, Thank you for your help. I'll try it locally. thanks, Byron At 2020-04-29 21:27:46, "Silvio Knizek" wrote: >Am Mittwoch, den 29.04.2020, 20:31 +0800 schrieb www: >> Dear All, >> >> I want to change the default timezone in systemd, wh

[systemd-devel] [systemd-level]: how to change default timezone in systemd code?

2020-04-29 Thread www
Dear All, I want to change the default timezone in systemd, when it first starts, it shows the time zone I want. How can I modify the code in systemd to implement the function? thanks, Byron___ systemd-devel mailing list [email protected]

Re: [systemd-devel] : How to modify systemd so that the NTP function is disabled when systemd is first started?

2020-04-24 Thread www
rectory. If you can do things via some config files you should also be >able to do this > >W dniu 23.04.2020 o 04:14, www pisze: >> >> hi Michal and Kevin, >> >> We applied systemd to embedded Linux, so we often need to update/flash >> the whole system. Wh

[systemd-devel] [systemd-level]: How to share the same DBUS between the main process and the new thread?

2020-04-23 Thread www
Dear all, I write a new service and the service need wait the signal. At the same time, I need to start a new thread to get information. If the two share the same DBUS, the following problems will arise: terminate called after throwing an instance of 'sdbusplus::exception::SdBusError' what():

Re: [systemd-devel] : How to modify systemd so that the NTP function is disabled when systemd is first started?

2020-04-22 Thread www
ite sure what you mean, but... generally these are symlinks >in /etc/systemd/system/multi-user.target.wants/ so you could delete them >manually if your intention is to make the actual os image with this >disabled from the start... > >W dniu 17.04.2020 o 12:10, www pisze: >> >

Re: [systemd-devel] [systemd-level]: how to set property to read only in systemd?

2020-04-22 Thread www
Thank you very much for your help。 thanks, Byron At 2020-04-21 20:53:02, "Lennart Poettering" wrote: >On Di, 21.04.20 19:54, www ([email protected]) wrote: > >> hi Lennart, >> >> >> I mean the DBUS property. >> >> root@d

Re: [systemd-devel] [systemd-level]: how to set property to read only in systemd?

2020-04-21 Thread www
, Byron At 2020-04-21 00:43:00, "Lennart Poettering" wrote: >On Mo, 20.04.20 23:00, www ([email protected]) wrote: > >> dear all; >> >> >> How to set some properties in systemd to read-only? Who can give the sample >> code? > >I don't un

[systemd-devel] [systemd-level]: how to set property to read only in systemd?

2020-04-20 Thread www
dear all; How to set some properties in systemd to read-only? Who can give the sample code? thank, Byron___ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel

Re: [systemd-devel] : How to modify systemd so that the NTP function is disabled when systemd is first started?

2020-04-17 Thread www
ooted. You don't need to run these commands >every time, running them one time will change the system configuration >and the service will no longer be started. > >On Fri, Apr 17, 2020 at 2:52 AM www wrote: >> >> hi Kevin , >> >> Thank you very much for

Re: [systemd-devel] : How to modify systemd so that the NTP function is disabled when systemd is first started?

2020-04-16 Thread www
ervice from being >started. It may also be necessary to mask it: > >$ systemctl mask systemd-timesyncd > >On Thu, Apr 16, 2020 at 6:22 AM www wrote: >> >> Dear all, >> >> I want to ask a question,How to modify systemd so that the NTP function is >> disabl

[systemd-devel] : How to modify systemd so that the NTP function is disabled when systemd is first started?

2020-04-16 Thread www
Dear all, I want to ask a question,How to modify systemd so that the NTP function is disabled when systemd is first started? The default state of systend is to synchronize time from NTP. We can use timedatectl command to disable NTP synchronize time. But if I flash the system, the NTP sync

Re: [systemd-devel] Who deals with the signals of "InterfacesAdded" ?

2020-04-09 Thread www
hi Lennart, Oh! I understand. Thanks you very much. thanks, Byron At 2020-04-10 01:02:17, "Lennart Poettering" wrote: >On Do, 09.04.20 21:27, www ([email protected]) wrote: > >> Dear all, >> >> when I add a new object to dbus, and will send

[systemd-devel] Who deals with the signals of "InterfacesAdded" ?

2020-04-09 Thread www
Dear all, when I add a new object to dbus, and will send a signal(named InterfacesAdded) to "org.freedesktop.Dbus.ObjectManager". I want to ask, who is going to handle this signal? What did it do? Where is the code? thanks, Byron___ systemd-devel ma

Re: [systemd-devel] Ask some questions about overlay+/dev/mtdblock?

2020-03-02 Thread www
If after uninstalling block4 and block5, I don't want overlay to have direct access to block4 or block5, what should I do? thanks, Byron At 2020-03-02 16:21:17, "www" wrote: Dear all, Systemd is used in the embedded system. and some mounting information is as fo

Re: [systemd-devel] Ask some questions about overlay+/dev/mtdblock?

2020-03-02 Thread www
If after uninstalling block4 and block5, I don't want overlay to have direct access to block4 or block5, what should I do? thanks, Byron At 2020-03-02 16:21:17, "www" wrote: Dear all, Systemd is used in the embedded system. and some mounting information is as fo

[systemd-devel] Ask some questions about overlay+/dev/mtdblock?

2020-03-02 Thread www
Dear all, Systemd is used in the embedded system. and some mounting information is as follows: dev on /dev type devtmpfs (rw,relatime,size=221372k,nr_inodes=55343,mode=755) sys on /sys type sysfs (rw,relatime) proc on /proc type proc (rw,relatime) tmpfs on /run type tmpfs (rw,nosuid,nodev,mode

[systemd-devel] Is there a way to uninstall the file system first and then stop all services?I

2020-02-27 Thread www
Dear all, In systend, the order of power off is: first stop all services, and then uninstall the file system to oldroot. In special applications, if the systemd need to stop most services first (need to keep some services communicating with the outside world over the network), then uninstall t

Re: [systemd-devel] Antw: Re: how to debug kernel panic which generated by udevadm at systemd?

2019-10-16 Thread www
At 2019-10-16 14:12:35, "Ulrich Windl" wrote: >>>> Mantas Mikulenas schrieb am 15.10.2019 um 20:32 in >Nachricht >: >> On Tue, Oct 15, 2019 at 3:02 PM www wrote: >> >>> Dear all, >>> >>> I add a new driver to kernel, and it

Re: [systemd-devel] Antw: how to debug kernel panic which generated by udevadm at systemd?

2019-10-15 Thread www
t; wrote: >Hi! > >I think your driver loads OK, but it is not working correctly. Maybe enable >kernel debug messages and add debug prints to your driver, especially regarding >any queries. I suspect some NULL pointer or empty string being returned. > >Regards, >Ulrich >

[systemd-devel] how to debug kernel panic which generated by udevadm at systemd?

2019-10-15 Thread www
Dear all, I add a new driver to kernel, and it probe success. When enter into systemd, the udevadm generate a kernel panic. I want to ask how to debug it and find out where the error occurred? When did udevadm load? What commands are used by udevadm, and what are the specific operations? [

Re: [systemd-devel] why the function don't have the parameter of 'value'

2019-08-13 Thread www
Dear Lennart, Thank you very much for your help. thanks, Byron At 2019-08-13 15:44:59, "Lennart Poettering" wrote: >On Di, 13.08.19 09:21, www ([email protected]) wrote: > >> I am looking forward to your reply. >> thanks, > >It expects that you

[systemd-devel] why the function don't have the parameter of 'value'

2019-08-12 Thread www
Dear all, I am studying a open source project, and it use the systemd. when I check the property change on dbus, and I found a question, so I sent the email to ask for advice. when change the property on dbus, it use the function of "sd_bus_emit_properties_changed_strv()" ((systemd\src\libsys

[systemd-devel] How can I study systemd?

2018-05-05 Thread www
Dear, I want to study the system, but I don’t know how to begin it. Who can give me some advices to study sytemd? I searched the info on the Internet and found that there was very little information about sytemd. I didn't know how to start learning systemd. Even in the github of systemd, can n