sadm_service_ctrl.sh

Updated: 2018/10/15
O/S : Linux

 
NAME

sadm_service_ctrl.sh   -   Enable, disable and get status of system startup and shutdown script.

 
SYNOPSIS

sadm_service_ctrl.sh     [ -v -h  ]    [ -d ]    [ -e ]    [ -s ]   

 
DESCRIPTION
  • Script is use to enable, disable and get the status of SADMIN Service.
  • When SADMIN service is enable, the following scripts are executed at system startup and shutdown .
  • When the SADMIN service is disable, these scripts are not executed.
  • You can get the status of SADMIN service, by using the '-s' option.
  • Support systemd and initV Linux version
  • Script use for the SADMIN service itself are ;
    • For InitV SADMIN use file '$SADMIN/cfg/.sadmin.rc'.
    • For Systemd SADMIN use file '$SADMIN/cfg/.sadmin.service'.
    These files are use by this script to construct the SADMIN service.
    You don't need to modify these files, they could modified by future update.

  • Enabling the SADMIN service.


    Disable the SADMIN service.


    Show the status of the SADMIN service.


 
OPTIONS

-d
Disable the execution of system startup and shutdown script in $SADMIN/sys directory.
-e
Enable execution of startup and shutdown script in $SADMIN/sys directory.
-s
Get the status of the SADMIN service.
-h
Display this help and exit.
-v
Output version information and exit.



REQUIREMENTS
 
EXIT STATUS
[0]    An exit status of zero indicates success
[1]    Failure is indicated by a nonzero value, typically ‘1’.

 
AUTHOR
Jacques Duplessis (jacques.duplessis@sadmin.ca.).
Any suggestions or bug report can be sent at http://www.sadmin.ca/support.php

 
COPYRIGHT
Copyright © 2018 Free Software Foundation, Inc. License GPLv3+:
    - GNU GPL version 3 or later http://gnu.org/licenses/gpl.html.
This is free software, you are free to change and redistribute it.
There is NO WARRANTY to the extent permitted by law.

 
SEE ALSO
  • sadm_startup.sh    (System startup script)
  • sadm_shutdown.sh    (System shutdown script)
  • sadm_service_ctrl.sh        (Activate/De-activate system startup/shutdown script execution).
  • Script use for the SADMIN service itself are ;
    • For InitV SADMIN use file '$SADMIN/cfg/.sadmin.rc'.
    • For Systemd SADMIN use file '$SADMIN/cfg/.sadmin.service'.


 
INDEX
NAME
SYNOPSIS
DESCRIPTION
OPTIONS
REQUIREMENTS
EXIT STATUS
AUTHOR
COPYRIGHT
SEE ALSO

Copyright © 2015-2019 - www.sadmin.ca - Suggestions, Questions or Report a problem at support@sadmin.ca