<\/figure>\n\n\n\n\uc774\uc81c \uc7ac\ubd80\ud305\ud558\uba74 \/home\/test.txt\ud30c\uc77c\uba85\uc5d0 restart test\ub77c\ub294 \ub0b4\uc6a9\uc744 \uac00\uc9c4 \ud30c\uc77c\uc774 \uc0dd\uc131\ub420\uac70\uc5d0\uc694.<\/p>\n\n\n\n
\uadf8\ub9ac\uace0 \ub611\uac19\uc774 \uc2e4\ud589 \uad8c\ud55c\uc744 \ubd80\uc5ec\ud574\uc8fc\uc138\uc694.<\/p>\n\n\n\n
sudo chmod +x \/etc\/restart.sh<\/code><\/pre>\n\n\n\n<\/p>\n\n\n\n
<\/span>4. rc-local \uc11c\ube44\uc2a4 \uc218\uc815<\/span><\/h3>\n\n\n\n
\uc774\uc81c rc-local<\/code> \uc11c\ube44\uc2a4\ub97c \uc0dd\uc131\ud558\uace0 \ud65c\uc131\ud654\ud574\uc57c \ud569\ub2c8\ub2e4. \ud30c\uc77c \uc704\uce58\ub294 \ub2e4\uc74c\uacfc \uac19\uc2b5\ub2c8\ub2e4. \/etc\/systemd\/system\/rc-local.service<\/code> <\/p>\n\n\n\n\ub9cc\uc57d \ud30c\uc77c\uc774 \uc5c6\ub2e4\uba74 \uc0c8\ub85c \uc0dd\uc131\ud574\uc8fc\uc2dc\uace0 \uc788\ub2e4\uba74 \uc218\uc815\ud558\uc2dc\uba74 \ub429\ub2c8\ub2e4.<\/p>\n\n\n\n
<\/ol>\n\n\n\n sudo vi \/etc\/systemd\/system\/rc-local.service<\/code><\/pre>\n\n\n\n\uae30\ubcf8\uc801\uc73c\ub85c \ub9c8\uc9c0\ub9c9 [install] \ubd80\ubd84\uc774 \uc5c6\uc744\ud150\ub370\uc694. \ud574\ub2f9 \ub0b4\uc6a9\uc744 \ud30c\uc77c\uc5d0 \ucd94\uac00\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n
[Unit]\n Description=\/etc\/rc.local Compatibility\n ConditionPathExists=\/etc\/rc.local\n\n [Service]\n Type=forking\n ExecStart=\/etc\/rc.local start\n TimeoutSec=0\n StandardOutput=tty\n RemainAfterExit=yes\n SysVStartPriority=99\n\n [Install]\n WantedBy=multi-user.target<\/strong><\/code><\/pre>\n\n\n\nInstall \ubd80\ubd84\uc758 \ub0b4\uc6a9\uc740 \uc27d\uac8c \uc124\uba85\ud558\uc790\uba74 \ubd80\ud305\uc774 \ub41c \ud6c4 \ub85c\uadf8\uc778\uc744 \uc704\ud574 \uc720\uc800\uac00 \ud0c0\uac9f\uc73c\ub85c \ubc14\ub014 \ub54c \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc2e4\ud589\ud55c\ub2e4\ub294 \ub73b\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n
<\/span>5. \uc11c\ube44\uc2a4 \ud65c\uc131\ud654 & \uc2dc\uc791 & \ud655\uc778<\/span><\/h3>\n\n\n\n
\uc774\uc81c rc-local \uc11c\ube44\uc2a4\ub97c \ud65c\uc131\ud654\ud558\uace0 \uc2dc\uc791\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n
<\/ol>\n\n\n\nsudo systemctl enable rc-local\nsudo systemctl start rc-local\nsudo systemctl status rc-local<\/code><\/pre>\n\n\n\n
<\/figure>\n\n\n\nstatus\uc758 \uacb0\uacfc\uac00 \uc704\uc640\uac19\uc774\ub098\uc624\uba74 \uc815\uc0c1\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n
<\/span>6. \uc7ac\ubd80\ud305 \ud6c4 \uacb0\uacfc\ud655\uc778<\/span><\/h3>\n\n\n\n\ud639\uc2dc\ub77c\ub3c4 \/home\/test.txt \ud30c\uc77c\uc774 \uc788\ub294 \uc9c0 \ud655\uc778\ud55c \ud6c4 \uc2dc\uc2a4\ud15c reboot\ub97c \uc9c4\ud589\ud569\ub2c8\ub2e4.<\/p>\n\n\n\n
\uc7ac\ubd80\ud305 \ud55c \ud6c4 \uc2a4\ud06c\ub9bd\ud2b8\uc758 \/home\/test.txt\ud30c\uc77c\uc774 \uc0dd\uc131\ub418\uc5b4\uc788\uace0, restart test\ub77c\ub294 \ub0b4\uc6a9\uc774 \uc368\uc838\uc788\ub2e4\uba74 \uc815\uc0c1\uc791\ub3d9\ud55c \uac83\uc785\ub2c8\ub2e4.<\/p>\n\n\n\n
<\/figure>\n\n\n\n\uc7ac\ubd80\ud305 \ud6c4 \ud655\uc778\ud574\ubcf4\ub2c8 \uc815\uc0c1\uc801\uc73c\ub85c test.txt \ud30c\uc77c\uc774 \uc0dd\uc131\ub418\uc5c8\uace0, \ud30c\uc77c \ub0b4\uc6a9\ub3c4 \uc798 \uc368\uc838\uc788\ub294 \uac83\uc744 \ud655\uc778\ud560 \uc218 \uc788\uc5c8\uc2b5\ub2c8\ub2e4.<\/p>\n\n\n\n
\n<\/code><\/pre>\n","protected":false},"excerpt":{"rendered":"\ub9ac\ub205\uc2a4 \ud658\uacbd\uc5d0\uc11c \uc7ac\ubd80\ud305\ud560 \ub54c \uc790\ub3d9\uc801\uc73c\ub85c \uc6d0\ud558\ub294 \uc2a4\ud06c\ub9bd\ud2b8\ub97c \uc2e4\ud589\ud560 \uc218 \uc788\ub294 \ubc29\ubc95\uc744 \uc54c\ub824\ub4dc\ub9ac\uaca0\uc2b5\ub2c8\ub2e4. rc.local \uc11c\ube44\uc2a4\ub97c \uc774\uc6a9\ud55c \ubc29\ubc95\uc778\ub370 \uc9c1\uc811 \uc0ac\uc6a9\ud574\ubcf4\uace0 \uc815\uc0c1\ub3d9\uc791\ud558\ub294 \uac83\uc744 \ud655\uc778\ud558\uc600\uc73c\ub2c8 \ubbff\uace0 \ub530\ub77c\uc640\uc8fc\uc138\uc694 \ud83d\ude42 \ub9ac\ub205\uc2a4 \uc7ac\ubd80\ud305 \ud6c4 \uc2a4\ud06c\ub9bd\ud2b8 \uc790\ub3d9\uc2e4\ud589\ud558\ub294 \ubc29\ubc95 …<\/p>\n","protected":false},"author":1,"featured_media":543,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-541","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-1"],"_links":{"self":[{"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/posts\/541","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/comments?post=541"}],"version-history":[{"count":2,"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/posts\/541\/revisions"}],"predecessor-version":[{"id":546,"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/posts\/541\/revisions\/546"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/media\/543"}],"wp:attachment":[{"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/media?parent=541"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/categories?post=541"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itreview.kr\/wp-json\/wp\/v2\/tags?post=541"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}