Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Westi on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

files in /var/lock/subsys ?

Status
Not open for further replies.

inetd

Technical User
Jan 23, 2002
115
HK
I have found most of the startup scripts has a line that touch a file in /var/lock/subsys. What does this mean?

For example:
/var/lock/subsys/xinetd
/var/lock/subsys/sendmail
/var/lock/subsys/named


Thanks.
 

This is to make sure the same process doesn't start up twice. If you run the startup script again, it will check the file, realise it's already running and exit.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
The system checks it or the start up script checks it?

If the system lost power suddenly, the file will remain there and does the start up script start in next boot?

Thanks.

 
Prolly realise its a "stale" lockfile, and clean itself up.

ß

 

It's only the startup script that checks it. (There's really no such thing as "the system").

You can always just delete it manually if it causes problems.

Cheers Henrik Morsing
Certified AIX 4.3 Systems Administration
& p690 Technical Support
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top