The importance of /var/lock/subsys
I was experimenting with shutdown scripts today when I discovered the importance of the /var/lock/subsys directory.
I didn't realize that there was code in /etc/rc that checked for the existence of a lock file before trying to stop a service. I guess I never had need to really look at this before. I banged my head repeated only why the K* scripts I had created weren't working. Until I finally looked at /etc/rc and realized it was only executing K* scripts for services that had touch /var/lock/subsys/<SERVICENAME>.
Duh, should have looked there first.
I didn't realize that there was code in /etc/rc that checked for the existence of a lock file before trying to stop a service. I guess I never had need to really look at this before. I banged my head repeated only why the K* scripts I had created weren't working. Until I finally looked at /etc/rc and realized it was only executing K* scripts for services that had touch /var/lock/subsys/<SERVICENAME>.
Duh, should have looked there first.
Comments
Post a Comment