lophandy.blogg.se

Linux process monitor restart
Linux process monitor restart













linux process monitor restart

If you do not know what this means, your system is probably pre-configured to boot into the multi-user run level. For the purposes of this example, the multi-user run level will be used, which is the most common run level Linux servers will start in. To monitor and automatically restart a process, follow the process below:ġ) Check to make sure the service is managed by systemdĮach service will have a service file in the /etc/systemd/system directory for the run level the service is to start in. It can also monitor and restart processes like psmon can do. Systemd is a system and service manager for Linux which has replaced the initd system. psmon is only used to monitor processes that do not use systemd. These platforms use systemd, which has its own process monitoring capability. Doing so will also tell ASL to not monitor its own services, and if a service fails for any reason ASL will not restart the service.ġ) edit /etc/asl/config, set the following: Note: It is not recommended that you disable the process monitor. To remove a service, simply disable it via chkconfig or systemctl and then generate the ASL policy for the systems current start. To add a service, simply enable it via chkconfig or systemctl and then generate the ASL policy for the systems current start. If a service dies, ASL will automatically restart the process. ASL includes a process monitor to ensure that services configured to run by the chkconfig or systemctl systems continue to run.















Linux process monitor restart