if you want to log the call parameters for function xyz, add this is the first line of xyz:
function xyz(p1, p2) {
debugFunctionCall('xyz', arguments);
...
}
then if you call
if you want to log the call parameters for function xyz, add this is the first line of xyz:
function xyz(p1, p2) {
debugFunctionCall('xyz', arguments);
...
}
then if you call
Look at LSB init scripts for more information.
Copy to /etc/init.d
:
# replace "$YOUR_SERVICE_NAME" with your service's name (whenever it's not enough obvious)