Smb & nmb not starting at boot - CentOS7


 
Thread Tools Search this Thread
Top Forums UNIX for Advanced & Expert Users Smb & nmb not starting at boot - CentOS7
# 1  
Old 02-22-2017
Smb & nmb not starting at boot - CentOS7

I would like the smb and nmb to start on boot.

In the terminal (as root) I did:

Code:
/sbin/chkconfig smb --add

or
Code:
chkconfig --add samba

or
Code:
chkconfig --add /sbin/smbd

resault is message like below :

Code:
error reading information on service smb: No such file or directory


Moderator's Comments:
Mod Comment Please use CODE tags as required by forum rules!

Last edited by RudiC; 02-22-2017 at 02:41 PM.. Reason: Added CODE tags.
# 2  
Old 02-22-2017
Centos7 uses systemd . Have a look at man systemctl, specifically systemctl enable ...
chkconfig is stiil used, but just for a few remaining applications that still use init scripts...
# 3  
Old 02-22-2017
You only need this command with both services.
Code:
systemctl enable smb nmb

Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Linux

CentOS7 systemd-timer

hi moring everyone, i has used systemd-timer running the task, i set every 5 second execute 1 times,but the systemd-timer don't by that also random times execute. what's reason. testest.timer configure ------------------------------------------------------------------------ ... (2 Replies)
Discussion started by: shean
2 Replies

2. Infrastructure Monitoring

Solaris 10 - starting snmpdx at boot time on a port other than 161

Hi All, Can we start the snmpdx on another port at boot time on solaris 10 instead of the default 161 port? What is the configuration file to set this? We can make it run in a different port after the system boots up by using snmpdx -p port_number This requirement is because i have an... (1 Reply)
Discussion started by: Mr. Zer0
1 Replies

3. HP-UX

help auto starting app on boot

Hi I need a bit of help figuring out how to auto start an application on boot on an HPUX. I am a fairly exp AIX guy now working an HP shop. I use to change a /etc/rc... file. Any advise would be a great help TIA. –K If it is a help the program is a DB and runs as root /usr/ud{##}/startud... (3 Replies)
Discussion started by: KmJohnson
3 Replies

4. UNIX for Dummies Questions & Answers

Starting & Stop print services in Unix

Hi There Kindly inform me on how to start and stop the print services in Unix from the command line. (2 Replies)
Discussion started by: esh
2 Replies

5. SCO

Stoping & starting the cron

Hi We are running SCO ver 5. Recently the cron daemon stopped running on its own. How do I find out why? How do I restart/stop it? I typed cron but it didn't work. Will rebooting it do the trick or can I manually start and stop the cron daemon? Please help. Thanks & Regards. (9 Replies)
Discussion started by: othman
9 Replies

6. SCO

Stoping & starting the cron daemon

Hi We are running SCO ver 5. Recently the cron daemon stopped running on its own. How do I find out why? How do I restart/stop it? I typed cron but it didn't work. Will rebooting it do the trick or can I manually start and stop the cron daemon? Please help. Thanks & Regards. (0 Replies)
Discussion started by: othman
0 Replies

7. UNIX for Dummies Questions & Answers

Slow FTP & SMB

SCO Unix 5.0.5 moving to Red Hat Intel EtherExpress Pro/100+ Newbie that just started working for a company and having an issue with transfer speeds over the network. Need to move 1.5GB of data from an old server with a single SCSI HDD to a new server with RAID 5 SATA HDD's. Goal was to FTP... (4 Replies)
Discussion started by: rockboles
4 Replies

8. SCO

Scologin not starting on boot up

Hi, I just finished swapping my computer to a new case. However, now when I try booting up the machine, I cannot get the Scologin to start. It just stays at the screen which says "Scologin is starting (/dev/tty02). Please wait.....". Does anyone have any idea how to fix this? Thanks (1 Reply)
Discussion started by: AtALoss
1 Replies

9. Slackware

starting up something on boot

I'm trying to bring up a database server when the linux 6.2 machine is restarted, in unix i can set up a Sxxdbstart script under rc3.d and run su user -c /path/to/my/script How can I do this in linux? I thought I could just run it under the rc.d/rc.local script and add it at the end of the... (2 Replies)
Discussion started by: kymberm
2 Replies
Login or Register to Ask a Question