- This topic has 2개 답변, 1명 참여, and was last updated 11 years, 8 months 전에 by 난해주님. This post has been viewed 3487 times
-
-
고수님들께... 여쭤 보겠습니다.
페도라에 cdemu-daemon을 설치하고 chkconfig와 systemctl을 이용한 스크립트 파일을 만들었으나둘 다 데몬 로딩이 되지 않네요!아래 소스를 첨부해 드립니다. 보시고 뭐가 문제인지 확인 부탁드립니다.## chkconfig init script ####! /bin/sh# chkconfig 2345 99 99# description: startup script for cdemu-daemon# processname: cdemu-daemonNAME=cdemu-daemonDIR=/usr/local/libexec/EXEC=cdemu-daemon-session.shPID_FILE=/var/run/cdemu.pidIEXE=/etc/init.d/cdemudRUN_AS=rootif [ ! -f $DIR/$EXEC ]thenecho "$DIR/$EXEC not found."exitficase "$1" instart)echo -n "Starting $NAME"cd $DIRstart-stop-daemon -d $DIR --start --background --pidfile $PID_FILE --make-pidfile --exec $EXEC --quietecho "$NAME are now running.";;stop)echo -n "Stopping $NAME"kill -TERM `cat $PID_FILE`rm $PID_FILEecho "$NAME.";;force-reload|restart)$0 stop$0 start;;*)echo "Use: /etc/init.d/$NAME {start|stop|restart|force-reload}"exit 1;;esacexit 0## 이상 #### systemctl unit ##[Unit]Description=CDEmu Daemon[Service]Type=dbusBusName=net.sf.cdemu.CDEmuDaemonExecStart=/usr/local/libexec/cdemu-daemon-session.sh[Install]WantedBy=multi-user.target## 이상 ##일단 옛날엔 chkconfig 를 이용했으나 스크립트를 백업해 두지 않아 새로 만들어 보았습니다.그러나 더 이상 cdemu가 더이상 chkconfig를 지원하지 않는 서비스라고 나옵니다.혹하고 systemctl unit 를 만들어 봤으나 이것도 먹혀 들지 않네요!고수님들 확인 부탁 드립니다. 틀린 부분이 있으면 지적해 주십시오.페도라에선 더 이상 cdemu가 패키지가 제공 되지 않는 것 같은데 rpm 패키지를 구할수 있는 곳이 있을까요?
1 답변 글타래를 보이고 있습니다
1 답변 글타래를 보이고 있습니다
- 답변은 로그인 후 가능합니다.