Hi All - I have a systemd service file to start my application. Part of my service file is: [Service] Type=forking ExecStart=/path to start ExecStop=/path to stop RemainAfterExit=yes This works fine "normally". However - when I do a "yum update; and reboot" my script detects a kernel change and now does a number of "recompiling" steps for drivers and such before starting my application. Somewhere along the way that just stops. I'm half way into recompiling those drivers and it just stops. Is there something else I need in the service file ? Thanks Jerry
Jerry Geis wrote:> > Hi All - I have a systemd service file to start my application. > > Part of my service file is: > [Service] > Type=forking > ExecStart=/path to start > ExecStop=/path to stop > RemainAfterExit=yes > > This works fine "normally". > > However - when I do a "yum update; and reboot" my script detects a kernel > change and now does a number of "recompiling" steps for drivers and such > before starting my application. Somewhere along the way that just stops. > I'm half way into recompiling those drivers and it just stops.Could it be you are hitting some default timeout ? Maybe adding 'TimeoutSec=infinity' could help ? Or, maybe moving your 'recompiling' stage to an ExecStartPre script ? (no idea if either of the above will help) James Pearson
Hi, for compiling Kernel Modules it might be worth looking at DKMS. DKMS is available through EPEL and is designed to compile Kernel Modules in an automated way when ever Kernel Updates are made. For more Informations on DKMS see [1, 2, 3]. best regards, Markus [1] https://github.com/dell/dkms [2] https://linux.die.net/man/8/dkms [3] https://wiki.archlinux.org/index.php/Dynamic_Kernel_Module_Support On Thu, 2019-02-07 at 09:40 -0500, Jerry Geis wrote:> Hi All -??I have a systemd service file to start my application. > > Part of my service file is: > [Service] > Type=forking > ExecStart=/path to start > ExecStop=/path to stop > RemainAfterExit=yes > > This works fine "normally". > > However - when I do a "yum update; and reboot"??my script detects a > kernel > change and now does a number of "recompiling" steps for drivers and > such > before starting my application. Somewhere along the way that just > stops. > I'm half way into recompiling those drivers and it just stops. > > Is there something else I need in the service file ? > > Thanks > > Jerry > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
Possibly Parallel Threads
- [SOLVED] Re: Feature Request: what about "core stop panic" ?
- Bug#821254: systemd[1]: xendomains.service start operation timed out.
- VM migration upon shutdown in centos 7
- centos 7- boot doesn't wait for startup script to complete
- How rc-local.service works?