pepoとネットワークを語ろう

40年前からこれまでとこれからのネットワークを語る

Fedora18のRasberry Piにはrc.localが無いのでremote-hand_piにはちょっと困る

2013-10-11 08:43:05 | Linux

Fedora18のRasberry Piにはrc.localが無いのでremote-hand_piにはちょっと困る

時計が無いので電源ONの後、dateコマンドで日付セットや、remote-handの起動を手動せにゃならん

なので、ネットにお願いしたら、/etc/rc.d/rc.localを手動で作成してちょ、だって
[root@remote-hand ~]# touch /etc/rc.d/rc.local
[root@remote-hand ~]# ll /etc/rc.d/rc.local
-rwxr-xr-x 1 root root 0 Oct 11 08:20 /etc/rc.d/rc.local
[root@remote-hand ~]# vi /etc/rc.d/rc.local


#!/bin/bash
# licence GPLv3 ; this scripts designed by Isamu.Yamauchi 2013.10.11 update 2013
.10.11
# /etc/rc.d/rc.local is local-start of rasberry_pi
# Run the following command after you add a script.
# systemctl enable rc-local.service ;systemctl status rc-local.service
# start remote-hand_pi
/usr/sbin/ntpdate gpsntp.miz.nao.ac.jp
/usr/local/bin/pepostart_remote-hand
exit 0

"/etc/rc.d/rc.local" 6L, 188C written

/etc/rc.d/rc.local編集後以下の操作が必要だと

[root@remote-hand ~]# systemctl enable rc-local.service
The unit files have no [Install] section. They are not meant to be enabled
using systemctl.
Possible reasons for having this kind of units are:
1) A unit may be statically enabled by being symlinked from another unit's
.wants/ or .requires/ directory.
2) A unit's purpose may be to act as a helper for some other unit which has
a requirement dependency on it.
3) A unit may be started when needed via activation (socket, path, timer,
D-Bus, udev, scripted systemctl call, ...).
pepoと




最新の画像もっと見る

コメントを投稿

ブログ作成者から承認されるまでコメントは反映されません。