unix

ununtu 시작프로그램 등록

mulderu 2013. 2. 27. 06:55


Ununtu server 에서 가장 손쉽게 시작프로그램을 등록하는 방법은 아래와 같이 /etc/rc.local 에 등록 하기입니다.

아래는 httpd 와 svnserver 를 자동으로 시작하는 예 입니다. ;)

root@turbine02:~# cat /etc/rc.local

#!/bin/sh -e

#

# rc.local

#

# This script is executed at the end of each multiuser runlevel.

# Make sure that the script will "exit 0" on success or any other

# value on error.

#

# In order to enable or disable this script just change the execution

# bits.

#

# By default this script does nothing.


/etc/init.d/httpd start

/usr/local/subversion/bin/svnserve  -d --threads --root /home/svn


exit 0

root@turbine02:~#