Re: [yocto] How to create a service only startes at shutdown process?

2019-08-09 Thread JH
Hi ChenQi, Thanks for the help, I tried following service, it did not work, the systemd complains bad unit [Unit] Description=Application Shutdown Service Before=multi-user.target [Service] Type=oneshot ExecStart= ExecStop=/usr/sbin/app_cleanup.sh [Install] WantedBy=multi-user.target >> Most o

Re: [yocto] How to create a service only startes at shutdown process?

2019-08-07 Thread ChenQi
On 08/07/2019 04:11 PM, JH wrote: Hi, Most of the services are started in boot, how can I have create a service only to be active in shutdown (not in boot) to clean up? Thank you. Kind regards, - jh Make use of ExecStop, leave ExecStart to be empty. -- _

[yocto] How to create a service only startes at shutdown process?

2019-08-07 Thread JH
Hi, Most of the services are started in boot, how can I have create a service only to be active in shutdown (not in boot) to clean up? Thank you. Kind regards, - jh -- ___ yocto mailing list yocto@yoctoproject.org https://lists.yoctoproject.org/listi