[SOLVED] rc.d and hwclock do not work ?

This forum is for Marvell Kirkwood devices such as the GoFlex Home/Net, PogoPlug v1/v2, SheevaPlug, and ZyXEL devices.

[SOLVED] rc.d and hwclock do not work ?

Postby singhparwinder » Fri Nov 30, 2012 8:10 am

Here is the output that i get :

PSB Mac:~ Parry$ ssh root@192.168.1.39
root@192.168.1.39's password:
Last login: Fri Nov 30 02:05:23 2012 from 192.168.1.49
[root@alarm ~]# rc.d restart samba
-bash: rc.d: command not found
[root@alarm ~]# hwclock --systohc
hwclock: Cannot access the Hardware Clock via any known method.
hwclock: Use the --debug option to see the details of our search for an access method.
[root@alarm ~]#

What am i doing wrong here ?
Last edited by singhparwinder on Fri Nov 30, 2012 1:24 pm, edited 1 time in total.
singhparwinder
 
Posts: 5
Joined: Fri Nov 30, 2012 3:29 am

Re: rc.d and hwclock do not work ?

Postby singhparwinder » Fri Nov 30, 2012 8:16 am

This is what happens when i "manually" try to start samba :

[root@alarm /]# cd etc
[root@alarm etc]# cd rc.d
[root@alarm rc.d]# ls

avahi-daemon functions.d krb5-kpropd net-rename sshd
avahi-dnsconfd ip6tables mdadm nscd syslog-ng
crond iptables net-auto-wired openntpd
dbus krb5-kadmind net-auto-wireless ppp
ftpd krb5-kdc net-profiles samba

[root@alarm rc.d]# cd samba
-bash: cd: samba: Not a directory
[root@alarm rc.d]# samba
-bash: samba: command not found
[root@alarm rc.d]# ./samba
./samba: line 4: /etc/rc.d/functions: No such file or directory
usage: ./samba {start|stop|restart}
[root@alarm rc.d]# ./samba start
./samba: line 4: /etc/rc.d/functions: No such file or directory
./samba: line 12: stat_busy: command not found
./samba: line 24: add_daemon: command not found
./samba: line 25: stat_done: command not found
[root@alarm rc.d]#
singhparwinder
 
Posts: 5
Joined: Fri Nov 30, 2012 3:29 am

Re: rc.d and hwclock do not work ?

Postby moonman » Fri Nov 30, 2012 9:28 am

rc.d is part of sysvinit which is gone and is replaced by systemd. To start a service you need to "systemctl start <name>.service" e.g. systemctl start smbd.service, to enable at boot replace "start" with "enable"
https://wiki.archlinux.org/index.php/Systemd
Pogoplug V4 | GoFlex Home | Raspberry Pi 4 4GB | CuBox-i4 Pro | ClearFog | BeagleBone Black | Odroid U2 | Odroid C1 | Odroid XU4
-----------------------------------------------------------------------------------------------------------------------
[armv5] Updated U-Boot | [armv5] NAND Rescue System
moonman
Developer
 
Posts: 3388
Joined: Sat Jan 15, 2011 3:36 am

Re: rc.d and hwclock do not work ?

Postby singhparwinder » Fri Nov 30, 2012 1:03 pm

Hi,

Thanks for all your help. When i start samba service using systemd it does not gives me any output. How do i know if the process is running now. In case of enable it does. Here is the output :

Last login: Fri Nov 30 02:09:01 2012 from 192.168.1.49
[root@alarm ~]# systemctl start smbd.service
[root@alarm ~]# systemctl restart smbd.service
[root@alarm ~]# systemctl enable smbd.service
ln -s '/usr/lib/systemd/system/smbd.service' '/etc/systemd/system/multi-user.target.wants/smbd.service'
[root@alarm ~]#

[EDIT] : FOUND IT!

systemctl is-enabled smbd.service


I figured out hwclock (I guess i need to do a little bit of reading here) :

# timedatectl set-local-rtc false
Last edited by singhparwinder on Fri Nov 30, 2012 1:15 pm, edited 1 time in total.
singhparwinder
 
Posts: 5
Joined: Fri Nov 30, 2012 3:29 am

Re: rc.d and hwclock do not work ?

Postby WarheadsSE » Fri Nov 30, 2012 1:12 pm

Your device may not have a hwclock
Core Developer
Remember: Arch Linux ARM is entirely community donation supported!
WarheadsSE
Developer
 
Posts: 6807
Joined: Mon Oct 18, 2010 2:12 pm


Return to Marvell Kirkwood

Who is online

Users browsing this forum: No registered users and 13 guests