Running a program after system startup directlly from the linux kernel -
i trying run application directly linux kernel(without usage of cron or that). if change ./init/init.c, runs early:
$ dmesg ... [ 0.605657] test!!! ...
my idea launch application after successful user login, can't find appropriate function use.
you're jumping conclusions. why want kernel if have whole userspace running already? (you want on user login)
have @ 1 of standard mechanisms (depending on what's available in system):
- systemd user sessions
- .profile / .xinit files users
- for advanced scenarios, maybe socket activation services.
Comments
Post a Comment