os/linux

fedora19 systemd (init.d 대체)

뚜벅이조 2013. 8. 16. 17:12

페도라를 처음 깔고, /etc/init.d 폴더가 썰렁하여 당황했었다. ㅜㅜ

알고보니 /usr/lib/systemd/system 폴더에 수많은 서비스가 있었다.

systemd는 기존  init . d  를 대체하는 시스템 데몬이다.

systemctl, journalctl 명령어를 사용한다.

1. systemd 저널 로그.
# journalctl -xn 

2. 서비스 활성화/비활성화
# systemctl enable/disable <service_name>.service

3. 서비스 제어
# systemctl start/stop/restart/reload/status <service_name>.service

4. 서비스 제거/등록
# systemctl mask/unmask <service_name>.service
# systemctl daemon-reload

5. 런레벨
# systemctl isolate runlevel<num>.target

6. 서비스 리스트
# systemctl list-unit --type=service

ref:

http://fedoraproject.org/wiki/Systemd

https://wiki.archlinux.org/index.php/Systemd/Services

http://onecellboy.tistory.com/225

http://wittgens.pe.kr/blog/blog_wittgens/4753

http://joonlinux.blogspot.kr/2012/07/systemd.html

http://www.freedesktop.org/software/systemd/man/systemd.service.html