{"id":1207,"date":"2013-04-29T16:45:09","date_gmt":"2013-04-29T07:45:09","guid":{"rendered":"http:\/\/helloidea.org\/?p=1207"},"modified":"2014-02-22T22:17:53","modified_gmt":"2014-02-22T13:17:53","slug":"debian%e3%81%a7%e3%83%87%e3%83%bc%e3%83%a2%e3%83%b3%e3%82%92%e7%99%bb%e9%8c%b2%e3%81%99%e3%82%8b","status":"publish","type":"post","link":"https:\/\/helloidea.org\/index.php\/archives\/1207.html","title":{"rendered":"Debian\u3067\u30c7\u30fc\u30e2\u30f3\u3092\u767b\u9332\u3059\u308b"},"content":{"rendered":"<p>debian\u3067\u30c7\u30fc\u30e2\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u304c\u30cd\u30c3\u30c8\u3092\u8abf\u3079\u3066\u3082\u53e4\u3044\u60c5\u5831\u3084\u3089\u3044\u308d\u3044\u308d\u6df7\u3058\u3063\u3066\u5206\u304b\u308a\u306b\u304f\u304b\u3063\u305f\u306e\u3067\uff92\uff93\uff92\uff93<\/p>\n<p><strong><span class=\"hi-c-orange\">Debian\u306e\u30c7\u30fc\u30e2\u30f3\u306b\u95a2\u4fc2\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30b3\u30de\u30f3\u30c9<\/span><\/strong><br \/>\n\/etc\/init.d \u00a0 \u00a0 \u00a0 \u00a0\/etc\/rc?.d \u00a0 \u00a0 \u00a0 \u00a0update-rc.d \u00a0 \u00a0 \u00a0 \u00a0sysv-rc-conf<br \/>\n\u306e\uff14\u3064<\/p>\n<p>\u7c21\u5358\u306a\u6d41\u308c<br \/>\n<span class=\"hi-c-amber\"><strong>1. \/etc\/init.d\/ \u306b\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u3092\u914d\u7f6e\u3059\u308b<\/strong><\/span><br \/>\n\u3000\u203b \/etc\/init.d\/skelton \u304c\u8d77\u52d5\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30b5\u30f3\u30d7\u30eb<br \/>\n<span class=\"hi-c-amber\"><strong>2. update-rc.d \u30b3\u30de\u30f3\u30c9\u3067\u3001\/etc\/rc?.d\/ \u306b\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u30ea\u30f3\u30af\u3092\u914d\u7f6e\u3059\u308b (ls -t \u30b3\u30de\u30f3\u30c9\u3067\u78ba\u8a8d\u53ef)<\/strong><\/span><br \/>\n\u3000\u203b \u30b3\u30de\u30f3\u30c9\u3092\u5b9f\u884c\u3059\u308b\u3068\u3001&#8221;SNoName&#8221;\u306e\u5f62\u5f0f\u3067 \/etc\/rc?.d\/\u306b\u30ea\u30f3\u30af\u304c\u914d\u7f6e\u3055\u308c\u308b<br \/>\n\u3000\u203b &#8220;SNoName&#8221;<br \/>\n\u3000\u3000&#8221;S&#8221;\u8d77\u52d5&#8221;K&#8221;\u505c\u6b62\u306e\u7565<br \/>\n\u3000\u3000&#8221;No&#8221;\u306f\u4e8c\u6841\u306e\u6570\u5b57\u3067\u512a\u5148\u5ea6<br \/>\n\u3000\u3000&#8221;Name&#8221;\u306f\u30b9\u30af\u30ea\u30d7\u30c8\u540d<br \/>\n<span class=\"hi-c-amber\"><strong>3. sysv-rc-conf \u30b3\u30de\u30f3\u30c9\u3067 runlevel \u3054\u3068\u306e\u30b9\u30af\u30ea\u30d7\u30c8\u306e\u8d77\u52d5\u505c\u6b62\u3092\u8a2d\u5b9a<\/strong><\/span><br \/>\n\u3000\u203b update-rc.d \u3067\u3082\u8a2d\u5b9a\u53ef\u80fd\u3002 sysv-rc-conf \u306e\u65b9\u304c\u76f4\u611f\u7684\u3067\u4f7f\u3044\u3084\u3059\u3044\u3002<br \/>\n\u3000\u203b \u5177\u4f53\u7684\u306b\u306f\u3001&#8221;SNoName&#8221; \u306e S \u3068 K \u3092\u5909\u66f4\u3057\u3066\u308b<br \/>\n<span class=\"hi-c-amber\"><strong>4. \u518d\u8d77\u52d5\u3057\u3066\u78ba\u8a8d<\/strong><\/span><br \/>\n\u3000\u203b \u30b7\u30b9\u30c6\u30e0\u306e\u8d77\u52d5\u6642\u306b \/etc\/rc?.d\/ \u306e\u4e2d\u306e\u30ea\u30f3\u30af\u3055\u308c\u305f\u30b9\u30af\u30ea\u30d7\u30c8\u304c\u5b9f\u884c\u3055\u308c\u308b<br \/>\n\u3000\u203b \/etc\/rc?.d\/ \u306e &#8220;?&#8221; \u306f\u73fe\u5728\u306erunlevel<\/p>\n<p><strong><span class=\"hi-c-orange\">SoftEtherVPN\u3067\u5b9f\u969b\u306b\u8a2d\u5b9a\u3057\u3066\u307f\u308b<\/span><\/strong><\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo cp skelton vpnserver\r\n$ sudo nano vpnserver\r\n# Provides: vpnserver\r\n  NAME=vpnserver\r\n  do_start()\r\n  {\r\n    $DAEMON start\r\n  }\r\n  do_stop()\r\n  {\r\n    $DAEMON stop\r\n  }\r\n<\/pre>\n<p>\u203b \u57fa\u672c\u7684\u306b\u30d5\u30a1\u30a4\u30eb\u306e\u4e0a\u306e\u65b9(LSB\u30d8\u30c3\u30c0\u30fc)\u3092\u5c11\u3057\u66f8\u304d\u63db\u3048\u308b\u3060\u3051\u3067OK<br \/>\n\u3000\u3000\u3000\u53c2\u8003URL <a href=\"http:\/\/d.hatena.ne.jp\/paraches\/20060403\">http:\/\/d.hatena.ne.jp\/paraches\/20060403<\/a><br \/>\n\u203b start \u3084 stop \u306e\u4e2d\u3067 start-stop-daemon \u304c\u4f7f\u308f\u308c\u3066\u307e\u3059\u304c\u4f7f\u308f\u306a\u304f\u3066\u3082OK<br \/>\n\u203b \u623b\u308a\u5024\u306f\u6c17\u306b\u3057\u306a\u304f\u3066OK&#8230;\u4eca\u306e\u3068\u3053\u308d..<br \/>\n\u203b \u30b9\u30af\u30ea\u30d7\u30c8\u30d5\u30a1\u30a4\u30eb\u540d\u3068NAME\u306f\u4e00\u81f4\u3055\u305b\u3066\u304a\u304f<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n$ sudo chmod +x vpnserver \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\/\/ \u5b9f\u884c\u53ef\u80fd\r\n$ sudo .\/vpnserver start\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000  \/\/\u958b\u59cb\u78ba\u8a8d\r\nSoftEther VPN Server Service Started.\r\n$ sudo .\/vpnserver stop\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 \/\/\u505c\u6b62\u78ba\u8a8d\r\nStopping SoftEther VPN Server Service...\r\nSoftEther VPN Server Service Stopped.\r\n$ sudo update-rc.d vpnserver defaults\u3000 \/\/\u8a2d\u7f6e\r\n$ sudo sysv-rc-conf \u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000\u3000 \/\/\u8a2d\u7f6e\u5185\u5bb9\u78ba\u8a8d\u5909\u66f4\r\n$ sudo shutdown -r now\r\n$ pstree\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>debian\u3067\u30c7\u30fc\u30e2\u30f3\u3092\u4f5c\u6210\u3059\u308b\u65b9\u6cd5\u304c\u30cd\u30c3\u30c8\u3092\u8abf\u3079\u3066\u3082\u53e4\u3044\u60c5\u5831\u3084\u3089\u3044\u308d\u3044\u308d\u6df7\u3058\u3063\u3066\u5206\u304b\u308a\u306b\u304f\u304b\u3063\u305f\u306e\u3067\uff92\uff93\uff92\uff93 Debian\u306e\u30c7\u30fc\u30e2\u30f3\u306b\u95a2\u4fc2\u3059\u308b\u30c7\u30a3\u30ec\u30af\u30c8\u30ea\u3068\u30b3\u30de\u30f3\u30c9 \/etc\/init.d \u00a0 \u00a0 \u00a0 \u00a0\/etc\/rc \u2026<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[49],"tags":[],"class_list":["post-1207","post","type-post","status-publish","format-standard","hentry","category-memo"],"_links":{"self":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1207","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/comments?post=1207"}],"version-history":[{"count":35,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1207\/revisions"}],"predecessor-version":[{"id":1242,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/posts\/1207\/revisions\/1242"}],"wp:attachment":[{"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/media?parent=1207"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/categories?post=1207"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/helloidea.org\/index.php\/wp-json\/wp\/v2\/tags?post=1207"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}