{"id":201688,"date":"2013-11-11T12:27:02","date_gmt":"2013-11-11T08:27:02","guid":{"rendered":"http:\/\/savepearlharbor.com\/?p=201688"},"modified":"-0001-11-30T00:00:00","modified_gmt":"-0001-11-29T21:00:00","slug":"","status":"publish","type":"post","link":"https:\/\/savepearlharbor.com\/?p=201688","title":{"rendered":"<span class=\"post_title\">\u0410\u0432\u0442\u043e\u0437\u0430\u043f\u0443\u0441\u043a \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 \u043a\u0430\u043a \u0441\u043b\u0443\u0436\u0431\u044b systemd \u0432 Fedora 19<\/span>"},"content":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0442\u0443\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438. \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443 \u043c\u0435\u043d\u044f Russian Fedora 19 x64. \u0417\u0430\u043f\u0443\u0441\u043a \u0447\u0435\u0440\u0435\u0437 rc.local \u0431\u044b\u043b \u0443\u0434\u0430\u043b\u0435\u043d \u0435\u0449\u0435 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u043e\u0432 Fedora \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e \u0443\u043c\u0443 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u0441\u043b\u0443\u0436\u0431\u0443. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043b\u0443\u0436\u0431 \u0432 Fedora 19 \u044d\u0442\u043e systemd, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 ( \u0434\u0430 \u043a\u043e\u0434 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0448\u0443\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c webdav, \u0438 \u043d\u0435 \u043d\u0430\u0434\u043e \u043b\u043e\u043c\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0432\u0443 \u0441 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439).<br \/>  <a name=\"habracut\"><\/a><br \/>  \u0418\u0442\u0430\u043a, \u043f\u0440\u0438\u0441\u0442\u0443\u043f\u0438\u043c:  <\/p>\n<ul>\n<li> \u0421\u0442\u0430\u043d\u043e\u0432\u043b\u044e\u0441\u044c root\n<pre><code class=\"bash\">su<\/code><\/pre>\n<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u044e \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u0443\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430\n<pre><code class=\"bash\">mkdir \/mnt\/yandex-disk<\/code><\/pre>\n<\/li>\n<li>\u041c\u0435\u043d\u044f\u044e \u0434\u0438\u0440\u0435\u043a\u0442\u043e\u0440\u0438\u044e \u0434\u043b\u044f \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438 \u043f\u0430\u043a\u0435\u0442\u0430\n<pre><code class=\"bash\">cd \/usr\/src<\/code><\/pre>\n<\/li>\n<li>\u0421\u043a\u0430\u0447\u0438\u0432\u0430\u044e 64-\u0431\u0438\u0442\u043d\u044b\u0439 rpm \u043f\u0430\u043a\u0435\u0442\n<pre><code class=\"bash\">wget http:\/\/repo.yandex.ru\/yandex-disk\/yandex-disk-latest.x86_64.rpm<\/code><\/pre>\n<\/li>\n<li>\u0423\u0441\u0442\u0430\u043d\u0430\u0432\u043b\u0438\u0432\u0430\u044e \u043f\u0430\u043a\u0435\u0442\n<pre><code class=\"bash\">rpm -ivh yandex-disk-latest.x86_64.rpm<\/code><\/pre>\n<\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u043f\u0435\u0440\u0432\u043e\u043d\u0430\u0447\u0430\u043b\u044c\u043d\u0443\u044e \u043d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0443 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430\n<pre><code class=\"bash\">yandex-disk setup<\/code><\/pre>\n<\/li>\n<li>\u041e\u0442\u0432\u0435\u0447\u0430\u044e \u043d\u0430 \u0432\u043e\u043f\u0440\u043e\u0441\u044b \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430<br \/> \n<pre><code class=\"bash\">\u0418\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u043f\u0440\u043e\u043a\u0441\u0438-\u0441\u0435\u0440\u0432\u0435\u0440? [y\/N]: N \u0410\u0432\u0442\u043e\u0440\u0438\u0437\u0430\u0446\u0438\u044f \u0415\u0441\u043b\u0438 \u0443 \u0432\u0430\u0441 \u0435\u0449\u0451 \u043d\u0435\u0442 \u0430\u043a\u043a\u0430\u0443\u043d\u0442\u0430 \u043d\u0430 \u042f\u043d\u0434\u0435\u043a\u0441\u0435, \u0435\u0433\u043e \u043c\u043e\u0436\u043d\u043e \u0437\u0430\u0432\u0435\u0441\u0442\u0438 \u043f\u043e \u0441\u0441\u044b\u043b\u043a\u0435 https:\/\/passport.yandex.ru\/passport?mode=register  \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043b\u043e\u0433\u0438\u043d: username \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0430\u0440\u043e\u043b\u044c: ******* \u0422\u043e\u043a\u0435\u043d \u0441\u043e\u0445\u0440\u0430\u043d\u0435\u043d \u0432 \/root\/.config\/yandex-disk\/passwd \u041d\u0430\u0441\u0442\u0440\u043e\u0439\u043a\u0430 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 \u0412\u0432\u0435\u0434\u0438\u0442\u0435 \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 (\u041e\u0441\u0442\u0430\u0432\u044c\u0442\u0435 \u043f\u0443\u0441\u0442\u044b\u043c \u0434\u043b\u044f \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u043d\u0438\u044f \u043f\u0430\u043f\u043a\u0438 '\/root\/Yandex.Disk'): \/mnt\/yandex-disk \u0417\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a \u043f\u0440\u0438 \u0432\u0445\u043e\u0434\u0435 \u0432 \u0441\u0438\u0441\u0442\u0435\u043c\u0443? [Y\/n]: n <\/code><\/pre>\n<p>  <\/li>\n<li>\u041a\u043e\u043f\u0438\u0440\u0443\u044e \u043f\u0430\u043f\u043a\u0443 \u0441 \u043a\u043e\u043d\u0444\u0438\u0433\u0443\u0440\u0430\u0446\u0438\u0435\u0439 \u0432 \/etc (\u044f \u0441\u0447\u0438\u0442\u0430\u044e \u0432\u0441\u0435 \u0444\u0430\u0439\u043b\u044b \u0434\u043e\u043b\u0436\u043d\u044b \u043d\u0430\u0445\u043e\u0434\u0438\u0442\u0441\u044f \u0432 \u0441\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0445 \u043c\u0435\u0441\u0442\u0430\u0445)\n<pre><code class=\"bash\">cp -r \/root\/.config\/yandex-disk \/etc<\/code><\/pre>\n<\/li>\n<li>\u041f\u0440\u0430\u0432\u043b\u044e \u043f\u0443\u0442\u0438 \u0432 \u0444\u0430\u0439\u043b\u0435 \/etc\/yandex-disk\/config.cfg\n<pre><code class=\"bash\">nano \/etc\/yandex-disk\/config.cfg<\/code><\/pre>\n<\/li>\n<li>\u0418 \u043f\u0440\u0438\u0432\u043e\u0436\u0443 \u0444\u0430\u0439\u043b \/etc\/yandex-disk\/config.cfg \u043a \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0435\u043c\u0443 \u0432\u0438\u0434\u0443\n<pre><code class=\"bash\">auth=&quot;\/etc\/yandex-disk\/passwd&quot; dir=&quot;\/mnt\/yandex-disk&quot;<\/code><\/pre>\n<\/li>\n<li>\u0421\u043e\u0437\u0434\u0430\u044e \u0444\u0430\u0439\u043b \/usr\/lib\/systemd\/system\/yandex-disk.service\n<pre><code class=\"bash\">nano \/usr\/lib\/systemd\/system\/yandex-disk.service<\/code><\/pre>\n<\/li>\n<li>\u0421\u043e \u0441\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u043c \u0441\u043e\u0434\u0435\u0440\u0436\u0430\u043d\u0438\u0435\u043c\n<pre><code class=\"bash\">[Unit] Description=Yandex Disk console client Requires=network.target  [Service] Type=forking User=root Group=root ExecStart=\/usr\/bin\/yandex-disk start -c \/etc\/yandex-disk\/config.cfg #\u0421\u043b\u0435\u0434\u0443\u044e\u0449\u0438\u0435 \u0434\u0432\u0435 \u0441\u0442\u0440\u043e\u0447\u043a\u0438 \u044d\u0442\u043e \u043a\u043e\u0441\u0442\u044b\u043b\u044c, \u0442.\u043a. \u043f\u0440\u0438 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435 \u0441\u043b\u0443\u0436\u0431\u0430 \u043d\u0435 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441\u0440\u0430\u0437\u0443, \u043f\u0438\u0448\u0435\u0442 \u043e\u0448\u0438\u0431\u043a\u0443: &quot;\u041e\u0448\u0438\u0431\u043a\u0430: \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c&quot;. #\u0421\u043a\u043e\u0440\u0435\u0435 \u0432\u0441\u0435\u0433\u043e \u043d\u0430\u0434\u043e \u043d\u0430\u043f\u0438\u0441\u0430\u0442\u044c \u0435\u0449\u0435 \u0447\u0442\u043e-\u043d\u0438\u0431\u0443\u0434\u044c \u0432 &quot;Requires=&quot;, \u0447\u0442\u043e\u0431\u044b \u0441\u043b\u0443\u0436\u0431\u0430 \u0441\u0442\u0430\u0440\u0442\u043e\u0432\u0430\u043b\u0430 \u043f\u043e\u0441\u043b\u0435 \u0447\u0435\u0433\u043e-\u0442\u043e \u0435\u0449\u0435, \u043d\u043e \u044f \u043d\u0435 \u0437\u043d\u0430\u044e \u0447\u0442\u043e #\u0425\u043e\u0442\u044f \u0441 \u0434\u0440\u0443\u0433\u043e\u0439 \u0441\u0442\u043e\u0440\u043e\u043d\u044b \u0435\u0441\u043b\u0438 \u0441\u043b\u0443\u0436\u0431\u0430 \u0437\u0430\u0432\u0438\u0441\u043d\u0435\u0442 \u0442\u043e \u0441\u0430\u043c\u0430 \u043f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u0442\u0438\u0442\u0441\u044f   RestartSec=60 Restart=always [Install] WantedBy=multi-user.target <\/code><\/pre>\n<\/li>\n<li>\u041f\u0435\u0440\u0435\u0437\u0430\u043f\u0443\u0441\u043a\u0430\u044e systemd\n<pre><code class=\"bash\">systemctl --system daemon-reload<\/code><\/pre>\n<\/li>\n<li>\u0417\u0430\u043f\u0443\u0441\u043a\u0430\u044e \u0441\u043b\u0443\u0436\u0431\u0443 yandex-disk.service\n<pre><code class=\"bash\">systemctl start yandex-disk.service<\/code><\/pre>\n<\/li>\n<li>\u041f\u0440\u043e\u0432\u0435\u0440\u044f\u043c \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043b\u0443\u0436\u0431\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439\n<pre><code class=\"bash\">systemctl status yandex-disk.service<\/code><\/pre>\n<\/li>\n<li>\u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u043f\u0440\u0438\u043c\u0435\u0440\u043d\u043e \u0442\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442\n<pre><code class=\"bash\">[root@localhost .config]# systemctl status yandex-disk.service yandex-disk.service - Yandex Disk console client    Loaded: loaded (\/usr\/lib\/systemd\/system\/yandex-disk.service; disabled)    Active: active (running) since \u041f\u0442 2013-11-08 23:11:15 MSK; 1s ago   Process: 31601 ExecStart=\/usr\/bin\/yandex-disk start -c \/etc\/yandex-disk\/config.cfg (code=exited, status=0\/SUCCESS)  Main PID: 31638 (yandex-disk)    CGroup: name=systemd:\/system\/yandex-disk.service            \u2514\u250031638 \/usr\/bin\/yandex-disk --tag=&quot;1 7 8 9 15 16&quot; --no-daemon=&quot;true&quot; --dir=&quot;\/mnt\/yandex-disk&quot; --config=&quot;\/etc\/yandex-disk\/config.cfg&quot; --...  \u043d\u043e\u044f 08 23:11:15 localhost.localdomain systemd[1]: Started Yandex Disk console client. <\/code><\/pre>\n<\/li>\n<li>\u0418\u043b\u0438 \u043f\u0440\u043e\u0432\u0435\u0440\u044f\u043c \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043b\u0443\u0436\u0431\u044b \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439\n<pre><code class=\"bash\">yandex-disk status -c \/etc\/yandex-disk\/config.cfg<\/code><\/pre>\n<\/li>\n<li>\u0418 \u043f\u043e\u043b\u0443\u0447\u0430\u0435\u043c \u0442\u0430\u043a\u043e\u0439 \u043e\u0442\u0432\u0435\u0442\n<pre><code class=\"bash\">[root@localhost ~]# yandex-disk status -c \/etc\/yandex-disk\/config.cfg \u0421\u0442\u0430\u0442\u0443\u0441 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438: 47.1 KB\/ 3.3 GB (0 %) \u0421\u0442\u0430\u0442\u0443\u0441 \u044f\u0434\u0440\u0430 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0438: \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u044f \u041f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430: '\/mnt\/yandex-disk' \u0414\u0438\u0441\u043a\u043e\u0432\u043e\u0435 \u043f\u0440\u043e\u0441\u0442\u0440\u0430\u043d\u0441\u0442\u0432\u043e: \t\u0417\u0430\u043d\u044f\u0442\u043e: 5.2 GB \t\u0421\u0432\u043e\u0431\u043e\u0434\u043d\u043e: 4.8 GB \t\u041c\u0430\u043a\u0441\u0438\u043c\u0430\u043b\u044c\u043d\u044b\u0439 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u0430: 10 GB \t\u0420\u0430\u0437\u043c\u0435\u0440 \u043a\u043e\u0440\u0437\u0438\u043d\u044b: 1.9 GB  \u041f\u043e\u0441\u043b\u0435\u0434\u043d\u0438\u0435 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u043e\u0432\u0430\u043d\u043d\u044b\u0435 \u043f\u0443\u0442\u0438: \t\u0444\u0430\u0439\u043b: 'TEST\/testfile.txt' <\/code><\/pre>\n<\/li>\n<li>\u0414\u043e\u0431\u0430\u0432\u043b\u044f\u044e \u0441\u043b\u0443\u0436\u0431\u0443 yandex-disk.service \u0432 \u0430\u0432\u0442\u043e\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0443\n<pre><code class=\"bash\">systemctl enable yandex-disk.service<\/code><\/pre>\n<\/li>\n<\/ul>\n<p>  \u0412\u0441\u0435 \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043f\u043e\u0441\u043b\u0435 \u043f\u0435\u0440\u0435\u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0438.<\/p>\n<p>  \u041b\u043e\u043a\u0430\u043b\u044c\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438 \u0431\u044d\u043a\u0430\u043f\u043e\u0432 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0438\u0440\u0443\u044e \u0441 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0435\u0439 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 \u043a\u043e\u043c\u0430\u043d\u0434\u043e\u0439 \u0432 crobtab`\u0435  <\/p>\n<pre><code class=\"bash\">\/usr\/bin\/rsync -rc --delete \/mnt\/500gb\/backups\/ \/mnt\/yandex-disk\/backups\/ <\/code><\/pre>\n<p>  \u0422\u0430\u043a\u0436\u0435 \u043e\u0431\u043d\u0430\u0440\u0443\u0436\u0438\u043b \u0432\u043e\u0437\u043c\u043e\u0436\u043d\u043e\u0441\u0442\u044c \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u043d\u0435\u0441\u043a\u043e\u043b\u044c\u043a\u043e \u043a\u043e\u043f\u0438\u0439 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 \u0441 \u0440\u0430\u0437\u043d\u044b\u043c\u0438 \u0443\u0447\u0435\u0442\u043d\u044b\u043c\u0438 \u0437\u0430\u043f\u0438\u0441\u044f\u043c\u0438. \u041d\u0430\u043f\u0440\u0438\u043c\u0435\u0440 \u0442\u0430\u043a:  <\/p>\n<pre><code class=\"bash\">\/usr\/bin\/yandex-disk start -c \/etc\/yandex-disk1\/config.cfg \/usr\/bin\/yandex-disk start -c \/etc\/yandex-disk2\/config.cfg \/usr\/bin\/yandex-disk start -c \/etc\/yandex-disk3\/config.cfg <\/code><\/pre>\n<p>  \u041f\u0440\u0438 \u043e\u0442\u043b\u0430\u0434\u043a\u0435 \u0441\u0442\u043e\u043b\u043a\u043d\u0443\u043b\u0441\u044f \u0441 \u043f\u0440\u043e\u0431\u043b\u0435\u043c\u043e\u0439: \u0441\u043b\u0443\u0436\u0431\u0430 \u043d\u0435 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0430\u0441\u044c \u043f\u0440\u0438 \u0437\u0430\u0433\u0440\u0443\u0437\u043a\u0435. \u0412\u044b\u0434\u0430\u0432\u0430\u043b\u043e \u043e\u0448\u0438\u0431\u043a\u0443: \u00ab\u041e\u0448\u0438\u0431\u043a\u0430: \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c\u00bb. \u041d\u043e \u043f\u043e\u0442\u043e\u043c \u0431\u0435\u0437 \u043e\u0448\u0438\u0431\u043e\u043a \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u043b\u0430\u0441\u044c \u0432\u0440\u0443\u0447\u043d\u0443\u044e systemctl start yandex-disk.service.<br \/>  \u0420\u0435\u0448\u0438\u043b\u043e\u0441\u044c \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u043c \u0441 RestartSec=60 \u0438 Restart=always. \u041d\u043e \u044d\u0442\u043e \u044f \u0441\u0447\u0438\u0442\u0430\u044e \u043d\u0435 \u0441\u043e\u0432\u0441\u0435\u043c \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e, \u0442.\u043a. \u0441\u043b\u0443\u0436\u0431\u0430 \u0441\u0442\u0430\u0440\u0442\u0443\u0435\u0442 \u0441\u043e 2 \u0440\u0430\u0437\u0430 \u2014 \u043e \u0447\u0435\u043c \u0433\u043e\u0432\u043e\u0440\u0438\u0442 \u043a\u0443\u0441\u043e\u043a \u043b\u043e\u0433\u0430:  <\/p>\n<pre><code class=\"bash\">tail -1000 \/var\/log\/messages | grep 'yandex' Nov  8 19:34:19 sharov yandex-disk[514]: \u041e\u0448\u0438\u0431\u043a\u0430: \u043f\u0443\u0442\u044c \u043a \u043f\u0430\u043f\u043a\u0435 \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u0435\u0442\u0441\u044f \u0434\u0440\u0443\u0433\u0438\u043c \u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u0435\u043b\u0435\u043c: \/mnt\/yandex-disk Nov  8 19:34:48 sharov systemd[1]: yandex-disk.service holdoff time over, scheduling restart. Nov  8 19:34:49 sharov yandex-disk[1816]: \u0417\u0430\u043f\u0443\u0441\u043a \u0434\u0435\u043c\u043e\u043d\u0430...\u0413\u043e\u0442\u043e\u0432\u043e <\/code><\/pre>\n<p>  P.S.: \u041c\u043e\u0435 \u0440\u0435\u0448\u0435\u043d\u0438\u0435 \u043d\u0435 \u043f\u0440\u0435\u0442\u0435\u043d\u0434\u0443\u0435\u0442 \u0430\u0431\u0441\u043e\u043b\u044e\u0442\u043d\u0443\u044e \u043f\u0440\u0430\u0432\u0438\u043b\u044c\u043d\u043e\u0441\u0442\u044c. \u041d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442.<br \/>  P.P.S: \u0427\u0442\u043e-\u0442\u043e \u043f\u043e\u0434\u0441\u043a\u0430\u0437\u044b\u0432\u0430\u0435\u0442 \u043c\u043d\u0435 \u0447\u0442\u043e \u043a\u043e\u0440\u0437\u0438\u043d\u0430 \u0432 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0435 \u043d\u0435 \u0434\u0430\u0441\u0442 \u043d\u043e\u0440\u043c\u0430\u043b\u044c\u043d\u043e \u0438\u0441\u043f\u043e\u043b\u044c\u0437\u043e\u0432\u0430\u0442\u044c \u0435\u0433\u043e \u0434\u043b\u044f \u0431\u044d\u043a\u0430\u043f\u043e\u0432, \u0442.\u043a. \u043f\u0440\u0438 \u0443\u0434\u0430\u043b\u0435\u043d\u0438\u0438 \u0444\u0430\u0439\u043b\u043e\u0432 \u0438\u0437 \u043b\u043e\u043a\u0430\u043b\u044c\u043d\u043e\u0439 \u043a\u043e\u043f\u0438\u0438 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 \u043e\u043d\u0438 \u043f\u0435\u0440\u0435\u043c\u0435\u0449\u0430\u044e\u0442\u0441\u044f \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0443, \u0430 \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u0438\u0437 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u043e\u0433\u043e \u043a\u043b\u0438\u0435\u043d\u0442\u0430 \u043d\u0435\u043b\u044c\u0437\u044f, \u0442\u043e\u043b\u044c\u043a\u043e \u0438\u0437 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430. \u0422\u0435\u043c \u0441\u0430\u043c\u044b\u043c \u0443\u043c\u0435\u043d\u044c\u0448\u0430\u0435\u0442\u0441\u044f \u0440\u0430\u0437\u043c\u0435\u0440 \u0434\u0438\u0441\u043a\u0430 \u043d\u0430 \u0440\u0430\u0437\u043c\u0435\u0440 \u0444\u0430\u0439\u043b\u043e\u0432 \u0432 \u043a\u043e\u0440\u0437\u0438\u043d\u0435. \u0418 \u043a\u043e\u0433\u0434\u0430 \u043e\u043d \u043f\u0435\u0440\u0435\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0431\u044d\u043a\u0430\u043f\u044b \u043f\u0435\u0440\u0435\u0441\u0442\u0430\u043d\u0443\u0442 \u043d\u0430 \u043d\u0435\u0433\u043e \u043a\u043e\u043f\u0438\u0440\u043e\u0432\u0430\u0442\u044c\u0441\u044f. \u041b\u0438\u0431\u043e \u0432\u0440\u0443\u0447\u043d\u0443\u044e \u0436\u0430\u0442\u044c \u043d\u0430 \u043a\u043d\u043e\u043f\u043e\u0447\u043a\u0443 \u043e\u0447\u0438\u0441\u0442\u0438\u0442\u044c \u043a\u043e\u0440\u0437\u0438\u043d\u0443 \u0438\u0437 \u0432\u0435\u0431 \u0438\u043d\u0442\u0435\u0440\u0444\u0435\u0439\u0441\u0430, \u0447\u0442\u043e \u044f\u0432\u043b\u044f\u0435\u0442\u0441\u044f \u043a\u043e\u0441\u0442\u044b\u043b\u0435\u043c. \u041f\u043e\u0434\u043e\u0436\u0434\u0443 \u043f\u043e\u043a\u0430 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a \u0437\u0430\u043f\u043e\u043b\u043d\u0438\u0442\u0441\u044f \u0438 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u044e \u0447\u0442\u043e \u0431\u0443\u0434\u0435\u0442. \t\t\t<\/p>\n<div class=\"clear\"><\/div>\n<\/p><\/div>\n<p> \u0441\u0441\u044b\u043b\u043a\u0430 \u043d\u0430 \u043e\u0440\u0438\u0433\u0438\u043d\u0430\u043b \u0441\u0442\u0430\u0442\u044c\u0438 <a href=\"http:\/\/habrahabr.ru\/post\/201688\/\"> http:\/\/habrahabr.ru\/post\/201688\/<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<div class=\"content html_format\"> \t\t\t\u0417\u0430\u0445\u043e\u0442\u0435\u043b\u043e\u0441\u044c \u0442\u0443\u0442 \u0434\u0435\u043b\u0430\u0442\u044c \u043d\u0430 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a \u0440\u0435\u0437\u0435\u0440\u0432\u043d\u044b\u0435 \u043a\u043e\u043f\u0438\u0438. \u041e\u043f\u0435\u0440\u0430\u0446\u0438\u043e\u043d\u043d\u0430\u044f \u0441\u0438\u0441\u0442\u0435\u043c\u0430 \u0443 \u043c\u0435\u043d\u044f Russian Fedora 19 x64. \u0417\u0430\u043f\u0443\u0441\u043a \u0447\u0435\u0440\u0435\u0437 rc.local \u0431\u044b\u043b \u0443\u0434\u0430\u043b\u0435\u043d \u0435\u0449\u0435 \u0438\u0437 \u043f\u0440\u0435\u0434\u044b\u0434\u0443\u0449\u0438\u0445 \u0432\u044b\u043f\u0443\u0441\u043a\u043e\u0432 Fedora \u043a\u0430\u043a \u0443\u0441\u0442\u0430\u0440\u0435\u0432\u0448\u0438\u0439, \u0438 \u044f \u0440\u0435\u0448\u0438\u043b \u0434\u0435\u043b\u0430\u0442\u044c \u0432\u0441\u0435 \u043f\u043e \u0443\u043c\u0443 \u2014 \u0437\u0430\u043f\u0443\u0441\u043a\u0430\u0442\u044c \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a \u043a\u0430\u043a \u0441\u0438\u0441\u0442\u0435\u043c\u043d\u0443\u044e \u0441\u043b\u0443\u0436\u0431\u0443. \u0421\u0442\u0430\u043d\u0434\u0430\u0440\u0442\u043d\u044b\u0439 \u0437\u0430\u043f\u0443\u0441\u043a \u0441\u043b\u0443\u0436\u0431 \u0432 Fedora 19 \u044d\u0442\u043e systemd, \u043d\u0430\u0447\u0438\u043d\u0430\u0435\u043c \u0434\u0432\u0438\u0433\u0430\u0442\u044c\u0441\u044f \u0432 \u044d\u0442\u043e\u043c \u043d\u0430\u043f\u0440\u0430\u0432\u043b\u0435\u043d\u0438\u0438. \u0418\u0441\u043f\u043e\u043b\u044c\u0437\u0443\u044e \u043e\u0444\u0438\u0446\u0438\u0430\u043b\u044c\u043d\u044b\u0439 \u043a\u043e\u043d\u0441\u043e\u043b\u044c\u043d\u044b\u0439 \u043a\u043b\u0438\u0435\u043d\u0442 \u042f\u043d\u0434\u0435\u043a\u0441.\u0414\u0438\u0441\u043a\u0430 ( \u0434\u0430 \u043a\u043e\u0434 \u0437\u0430\u043a\u0440\u044b\u0442\u044b\u0439, \u043d\u043e \u0440\u0430\u0431\u043e\u0442\u0430\u0435\u0442 \u043d\u0430\u043c\u043d\u043e\u0433\u043e \u0448\u0443\u0441\u0442\u0440\u0435\u0435 \u0447\u0435\u043c webdav, \u0438 \u043d\u0435 \u043d\u0430\u0434\u043e \u043b\u043e\u043c\u0430\u0442\u044c \u0433\u043e\u043b\u043e\u0432\u0443 \u0441 \u0441\u0438\u043d\u0445\u0440\u043e\u043d\u0438\u0437\u0430\u0446\u0438\u0435\u0439).  <\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[],"tags":[],"class_list":["post-201688","post","type-post","status-publish","format-standard","hentry"],"_links":{"self":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/201688","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=201688"}],"version-history":[{"count":0,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=\/wp\/v2\/posts\/201688\/revisions"}],"wp:attachment":[{"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=201688"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=201688"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/savepearlharbor.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=201688"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}