Unix - CRON실행(Solaris 9 or earlier versions, Solaris 10)
Posted 05 7, 2010 11:34, Filed under: System/UNIXService management details
svcs(1) command
System administrators can more easily monitor services using Solaris Service Manager’s service status information and service activation/deactivation interfaces based on the commands (svcs(1), svcadm(1) etc). Until Solaris 9, it was a complicated procedure to understand service status. Service level information was not provided and system administrators have to assume service status from their own analysis of kernel level information. A slow and error prone process.
svcadm(1M) command
Services and the services on which they depend are started in their appropriate order using the Solaris Service Manager svcadm(1) command. System administrators are longer required to run complicated service startup operations.
For example, if there are two services, Service A and Service B, and Service A depends on Service B, previously the system administrator needed to start the services paying close attention to their dependent relationship. Now with Solaris10, they only have to start Service A. Solaris Service Manager automatically detects that Service B needs to be started, and starts the services in the right sequence.

With Solaris 10 the traditional service stop procedure using the kill(1) or pkill(1) commands is no longer available. This is because, once stopped, Solaris Service Manager will automatically restart them. So a new command, svcadm (1M) is now used for stopping services.
| Solaris 9 or earlier versions | Solaris 10 | |
|---|---|---|
| Service status | ps(1) command (only process information is shown) |
svcs(1) or ps(1) command |
| Service stop | # /etc/init.d/cron stop | # svcadm disable -t system/cron:default |
| Service restart (temporary) | # /etc/init.d cron start | # svcadm enable -t system/cron:default |
| Service stop After service restart the service isn't started |
(1)# /etc/init.d/cron stop (2)# mv /etc/rc2.d/S75cron /etc/rc2.d/_S75cron (Need to rename the service start script) |
# svcadm disable -t system/cron:default |
| Service restart (permanent) | (1) # /etc/init.d/cron stop (2) # /etc/init.d/cron start |
# svcadm restart -t system/cron:default |
- Solaris 10 간단한 재실행
# svcs cron
STATE STIME FMRI
online 4월_26 svc:/system/cron:default
# svcadm restart cron
#
# svcs cron
STATE STIME FMRI
online 11:26:41 svc:/system/cron:default
출처 : http://www.fujitsu.com/global/services/computing/server/unix/os/solaris10/self-healing/ssm/
"System / UNIX" 분류의 다른 글
| Unix - 압축 파일 내용 조회및 풀기 (0) | 2012/01/25 |
| Linux - Telnet 서비스 비활성및 실행 (0) | 2012/01/10 |
| Unix - 대량 파일 이동, 삭제시 Argument list too long (0) | 2011/12/26 |
| Unix - unix, Contos 용 파일질라 (0) | 2011/10/27 |
| Solaris - TCP 접속자 정보(IP, Port) 로그 남기기 (0) | 2011/10/17 |
| Solaris - 텔넷(telnet) 데몬에 심각한 취약점 (0) | 2011/10/17 |
| Solaris8 - SSH 설치 (0) | 2011/10/17 |
| Unix - Sendmail 보내고 받는 메일 용량 제한 (0) | 2011/10/04 |
| Unix - 깨진 파일명을 가진 파일 검색및 삭제. (0) | 2011/07/14 |
| Linux - 영문, 한글 DNS 설정및 apache virtualhost 설정 (0) | 2010/06/23 |
Trackback URL : http://develop.sunshiny.co.kr/trackback/456