본문 바로가기
Freebsd/system

FreeBSD 간단한 팁

by 북한산산적 2012. 2. 12.


service 명령어가 언제 부터 인가 생겼군요.

gnome# service

Usage:
service -e
service [-v] -l | -r
service [-v] <rc.d script> start|stop|etc.
service -h

-e      Show services that are enabled
-l      List all scripts in /etc/rc.d and /usr/local/etc/rc.d
-r      Show the results of boot time rcorder
-v      Verbose


gnome# service -e
/etc/rc.d/hostid
/etc/rc.d/cleanvar
/etc/rc.d/ip6addrctl
/etc/rc.d/devd
/etc/rc.d/newsyslog
/etc/rc.d/syslogd
/etc/rc.d/dmesg
/etc/rc.d/virecover
/etc/rc.d/moused
/etc/rc.d/motd
/etc/rc.d/sshd
/etc/rc.d/sendmail
/etc/rc.d/cron
/etc/rc.d/mixer
/etc/rc.d/bgfsck


service sshd restart

 

gnome# service sshd restart
Stopping sshd.
Starting sshd.


ports 에서 설치 하고 service -e
로 확인 해봐도..


/usr/local/etc/rc.d/apache22

이런식으로 걸려 있는 것을 확인 할수 있습니다.


service apache22 start|stop|restart


/usr/local/etc/rc.d/apache22 start


둘중 편한것으로 실행을 하시면 좋을듯 합니다. ^^