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):

  1. systemd user sessions
  2. .profile / .xinit files users
  3. for advanced scenarios, maybe socket activation services.

Comments

Popular posts from this blog

java - unable show chart in xls document using jasper reports -

java.lang.RuntimeException: Could not generate dummy secret at sun.security.ssl.RSAClientKeyExchange.<init> -

javascript - How to change image src on success AJAX -