![]() |
BillMax Billing Solutions 877.245.5629 sales@billmax.com |
runhook — Setuid wrapper for BillMax BillMax Hooks. Internal BillMax command.
/usr/local/billmax/bin/runhook [
OPTIONS
] [file]
Setuid wrapper for BillMax BillMax Hooks. This program is used by BillMax to execute the BillMax Hooks. A BillMax Hook is executed under the privileges of username and groupname.
username is determined in the following order:
The user specified with the -u.
The environment variable RUNHOOK_USER. Note that this is specified in /usr/local/billmax/local/billmax.conf.
"nobody".
groupname is determined in the following order:
The group specified with the -g.
The environment variable RUNHOOK_GROUP. Note that this is specified in /usr/local/billmax/local/billmax.conf.
"nobody".
-a
Use an alternative directory for locating the BillMax Hooks to execute. The default directory is /usr/local/billmax/local. If this option is specified, the alternate directory is /usr/local/billmax/secure/. See previous discussion on how usernameusername is determined.
-g groupname
The BillMax Hook is executed under groupname privileges.
-nBy default, like executions of a BillMax Hook are serialized, i.e. two simultaneous executions of the same BillMax Hook is prohibited. Specifying this options allows two or more simultaneous executions of a the same BillMax Hook.
-u username
The BillMax Hook is executed as if UserName is executing the BillMax Hook.
-hShow help for this program.
This may create a lock file called /tmp/hookbase_hook_lock where hook is the basename of the BillMax Hook (i.e. "service", "user", etc.)