11.Nas_1


[시놀리지] 부팅시 자동 실행 스크립트 경로(자료 펌)


  • 링크


  • 컨텐츠 정보


    본문

    자료 펌)

    \r\n

    http://m.assayo.com/board_view.html?board=forum_nas&pid=11287

    \r\n

     

    \r\n

    리눅스에서 흔히들 /etc/rc.local 을 만들어서 사용하시죠?

    시놀리지에서 위의 경로로 사용해 보니 동작하지 않아서 검색해 보았더니

    /usr/syno/etc/rc.d 에 원하는 스크립트를 S99파일.sh 를 넣고
    chmod 700 S99파일명.sh 을 해주면 리부팅시마다 처리된다고 합니다.

    이거 설정을 몇달째 안해놔서 가끔 부팅할때마다 /root 에 넣어둔 스크립트를 실행하고 있었네요

    아래 출처의 내용도 옮겨두었는데 저 같은 경우는 다른 폴더는 안되고 /usr/syno/etc/rc.d/S99파일명.sh 이것만 되더라구요

    ----------------------------------------------
    http://forum.synology.com/enu/viewtopic.php?f=77&t=51025

    On startup post-edit, scripts run in this order:
    1. /usr/local/etc/rc.d/S[00->99]scriptname.sh start
    These are all of the Synology Scripts.

    2. /etc/rc.optware start (executed by rc.local)
    This script mounts your /opt with your /volume1/@optware

    3. /usr/local/etc/rc.d/optware.sh start (executed by unknown syno script)
    This now rechecks your mounts on startup, and executes /opt/etc/rc.optware start.

    4. /opt/etc/rc.optware start (executed by /usr/local/etc/rc.d/optware.sh)
    This executes a /opt/etc/init.d/S[00->99]scriptname.sh start

    5. /opt/etc/init.d/S[00->99]scriptname.sh start (executed by /opt/etc/rc.optware)
    This is where optware packages will install their startup scripts. This is the correct place.

    On shutdown, scripts run in this order:
    1. /usr/local/etc/rc.d/optware.sh stop (executed by unknown syno script)
    This script does some logging on umount, then executes /opt/etc/rc.optware stop.

    2. /opt/etc/rc.optware stop (executed by /usr/local/etc/rc.d/optware.sh)
    This executes a /opt/etc/init.d/K[00->99]scriptname.sh stop

    3. /opt/etc/init.d/K[00->99]scriptname.sh stop (executed by /opt/etc/rc.optware)
    This is where optware packages will install their shutdown scripts.

    4. /usr/syno/etc/rc.d/S[00->99]scriptname.sh stop 
    These are all of the Synology Scripts. 

    \r\n

     

    ♠ shimss home 는 컴퓨터자료 windows10, server 2012 2016 r2 xpenology WinPE 헤/시놀로지 NAS 그누보드 아미나,APMS 모바일 pc 홈페이지 일상생활 을 위하여 정보를 찾아 공유 합니다.♠ 출처는 링크 참조 바랍니다.♠ https://11q.kr.com https://11q.kr https://11q.kr http://33.iptime.org
    뷰PDF add1,add2



    관련자료

    댓글 0
    등록된 댓글이 없습니다.


    전체 1,749 / 58 페이지
    전체 1,749 / 58 페이지



    ♥간단_메모글♥


    최근글


    새댓글



    PHP 안에 HTML ☞ 홈페이지 화면갱신 시간은 ♨
    ▶ 2024-05-17 14:19:02

    오늘의 홈 현황


    • 현재 접속자♨ 106 명
    • 오늘 가입자※ 1 명
    • 어제 가입자※ 6 명
    • 주간 가입자※ 11 명
    • 오늘 방문자 1,015 명
    • 어제 방문자 2,015 명
    • 최대 방문자 13,042 명
    • 전체 방문자 4,327,360 명
    • 전체 게시물※ 8,573 개
    • 전체 댓글수※ 24,619 개
    • 전체 회원수 10,971 명

    QR코드


    ☞ QR코드 스캔은 kakao앱 자체 QR코드

    알림 0








    최신글↑