On 2015-01-19 06:06, Felix Miata wrote:
samba-4.1.11-3.26.1.i586 samba-client-4.1.11-3.26.1.i586 ... # systemctl list-units | grep nmb
You are searching for "nmb", or for "smb"? Typo... I noticed when I pasted your command in my system and got strange results.
# ls -l /usr/lib/systemd/system/nmb.service -rw-r--r-- 1 root root 339 Jul 7 2014 /usr/lib/systemd/system/nmb.service # systemctl list-units | grep smb # which /usr/lib/systemd/system/nmb.service which: no nmb.service in (/usr/lib/systemd/system)
'which' searches for programs (in the path), not for data files (a service file is not executable). I don't think it will work the way you are trying. Telcontar:~ # systemctl list-units | grep smb smb.service loaded active running Samba SMB Daemon Telcontar:~ # Telcontar:~ # rcsmb status smb.service - Samba SMB Daemon Loaded: loaded (/usr/lib/systemd/system/smb.service; enabled) Active: active (running) since Fri 2015-01-09 13:04:02 CET; 1 weeks 3 days ago Main PID: 2804 (smbd) Status: "smbd: ready to serve connections..." CGroup: /system.slice/smb.service ├─ 2804 /usr/sbin/smbd -D ├─ 3100 /usr/sbin/smbd -D └─14565 /usr/sbin/smbd -D Jan 09 13:03:59 Telcontar systemd[1]: smb.service: Supervising process 2804 which is not our child. We'll most likely not notice when it exits. Jan 09 13:04:02 Telcontar smbd[2804]: [2015/01/09 13:04:02.072096, 0] ../lib/util/become_daemon.c:137(daemon_ready) Jan 09 13:04:02 Telcontar smbd[2804]: STATUS=daemon 'smbd' finished starting up and ready to serve connections Jan 09 13:04:02 Telcontar systemd[1]: Started Samba SMB Daemon. Jan 19 13:29:14 Telcontar smbd[2751]: [2015/01/19 13:29:10.617406, 0] ../source3/smbd/process.c:2656(keepalive_fn) Jan 19 13:29:14 Telcontar smbd[2751]: send_keepalive failed for client 0.0.0.0. Error Connection reset by peer - exiting Telcontar:~ # About nmb: Telcontar:~ # systemctl list-units | grep nmb Telcontar:~ # Telcontar:~ # systemctl status nmb.service nmb.service - Samba NMB Daemon Loaded: loaded (/usr/lib/systemd/system/nmb.service; disabled) Active: inactive (dead) Telcontar:~ # systemctl list-units | grep nmb Telcontar:~ # rcnmb status nmb.service - Samba NMB Daemon Loaded: loaded (/usr/lib/systemd/system/nmb.service; disabled) Active: inactive (dead) Telcontar:~ # But: Telcontar:~ # rcnmb start Telcontar:~ # systemctl list-units | grep nmb nmb.service loaded active running Samba NMB Daemon Telcontar:~ # Telcontar:~ # rcnmb stop Telcontar:~ # systemctl list-units | grep nmb Telcontar:~ # Ie, it is only listed by list-units when it is running.
# rpm -qa | grep telnet telnet-1.2-164.4.1.i586 telnet-server-1.2-164.4.1.i586 # systemctl list-units | grep telnet # ls -l /usr/lib/systemd/system/telne* ls: cannot access /usr/lib/systemd/system/telne*: No such file or directory
O_O :~(
As it is not running, it is not listed. No error, no problem :-) -- Cheers / Saludos, Carlos E. R. (from 13.1 x86_64 "Bottle" at Telcontar)