User Tools

Site Tools


esmith:util

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
esmith:util [2015/05/22 10:20]
stephdl created
esmith:util [2019/06/05 21:48] (current)
Line 30: Line 30:
 Returns the current release version of the software. Returns the current release version of the software.
  
-===== NETWORK ADDRESS TRANSLATION UTILITIES ====+==== NETWORK ADDRESS TRANSLATION UTILITIES ====
 ==== IPquadToAddr($ip) ==== ==== IPquadToAddr($ip) ====
  
Line 161: Line 161:
 Set e-smith user password - require previous password Set e-smith user password - require previous password
  
-===== cancelUserPassword ​=====+==== cancelUserPassword ====
  
 Cancel user password. This is called when a user is deleted from the system. We assume that the Unix "​useradd/​userdel"​ programs are called ​ separately. Since "​userdel"​ automatically removes the /etc/passwd entry, we only need to worry about the /​etc/​samba/​smbpasswd entry. Cancel user password. This is called when a user is deleted from the system. We assume that the Unix "​useradd/​userdel"​ programs are called ​ separately. Since "​userdel"​ automatically removes the /etc/passwd entry, we only need to worry about the /​etc/​samba/​smbpasswd entry.
Line 181: Line 181:
            );            );
  
-===== EXAMPLE: ====+=== EXAMPLE: ====
            ​serviceControl( NAME=>​’httpd-e-smith’,​ ACTION=>​’reload’ );            ​serviceControl( NAME=>​’httpd-e-smith’,​ ACTION=>​’reload’ );
  
-=====NOTES: ​=====+===NOTES: ===
  
 The BACKGROUND parameter is optional and can be set to true if start/​stop/​restart/​etc. is to be done in the background (with backgroundCommand()) rather than synchronously. The BACKGROUND parameter is optional and can be set to true if start/​stop/​restart/​etc. is to be done in the background (with backgroundCommand()) rather than synchronously.
  
-===== CONVENTIONS: ​=====+=== CONVENTIONS:​ ===
  
 This command is the supported method for action scripts, blade handlers, etc., to start/​stop/​restart their services. Currently this is done via the rc7 symlinks, but this may change one day. Using this function gives us one location to change this behaviour if desired, instead of hunting all over every scrap of code. Please use it. This command is the supported method for action scripts, blade handlers, etc., to start/​stop/​restart their services. Currently this is done via the rc7 symlinks, but this may change one day. Using this function gives us one location to change this behaviour if desired, instead of hunting all over every scrap of code. Please use it.
  
-==== getLicenses() ====+====getLicenses() ====
  
 Return all available licenses In scalar context, returns one string combining all licenses In array context, returns an array of individual licenses Return all available licenses In scalar context, returns one string combining all licenses In array context, returns an array of individual licenses
esmith/util.1432282806.txt.gz · Last modified: 2019/06/05 21:48 (external edit)