User Tools

Site Tools


esmith:util

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
esmith:util [2015/05/22 08:21]
stephdl [NETWORK ADDRESS TRANSLATION UTILITIES]
esmith:util [2019/06/05 19:48] (current)
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.1432282909.txt.gz · Last modified: 2019/06/05 19:48 (external edit)