Displaying 1 result from an estimated 1 matches for "slocatedb".
Did you mean:
locatedb
2007 Dec 03
3
exec when missing a file but service installed.
...alled, or should be
installed and a file created by that service needs to be created, but is
done by the service/program itself. One of these is the slocate
databases so I require a manifest that does the following:
Check that slocate is installed
Check if the slocate db exists (/var/lib/slocate/slocatedb)
And if not run ''updatedb''
Else
Do nothing.
I did come up with the following but it does not work.
File { "/var/lib/slocate/slocate.db":
requires => Package["slocate"],
notify => Exec[/usr/bin/updatedb"]
}
Can anyone point me in the ri...