^thehatsrule^

Group: Members
Posts: 3275
Joined: July 2006 |
 |
Posted: Nov. 29 2006,14:06 |
 |
That file is created when nmbd is running. I think pid = process id
You could place something like
Code Sample | if ! [ -f /var/locks/nmdb.pid ] #Start nmbd here how I like to fi |
Essentially this looks if that file is there - if it is, it assumes nmdb is running. If not, it will run nmdb. I suppose you could also do a `ps -Ax|grep nmdb`.
Also, you'll probably need root perms, so you might have to prepend sudo or do something similar.
|